LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (August 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 18 Aug 2010 22:48:39 -0500
Reply-To:     Yu Zhang <zhangyu05@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Yu Zhang <zhangyu05@GMAIL.COM>
Subject:      Re: Question about Commaw.d informat
Comments: To: Nat Wooding <nathani@verizon.net>
In-Reply-To:  <AB440832EA4542B2B0269E00E65EC7B6@D1871RB1>
Content-Type: text/plain; charset=ISO-8859-1

Nat,

Thank you for looking at this. the log you got is correct. I had a missing statement (Missing S) in a program which was run earlier.

the missing statement is global in scope. so that is why my sample code was OK. I failed to check the previous code and jump to conclusions.

I guess it is too late for me to stay on the L.

Again thank you.

Yu

On Wed, Aug 18, 2010 at 10:28 PM, Nat Wooding <nathani@verizon.net> wrote:

> Yu > > When I run this code, I receive the log > > > NOTE: Invalid argument to function INPUT at line 145 column 3. > a=. > a=. _ERROR_=1 _N_=1 > NOTE: Mathematical operations could not be performed at the following > places. The results of the > operations have been set to missing values. > > > > > Which is what I would expect since you are associating a character string, > "S" with a numeric informat. > > Are you certain that your log did not display the results that mine gave? > > Nat Wooding > -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Yu > Zhang > Sent: Wednesday, August 18, 2010 11:12 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Question about Commaw.d informat > > Hello, > > while i am reading the some old post, i came across a strange output from > the INPUT function. > > data _null_; > a=input('S',comma.); > put a=; > run; > > the program runs OK without any complaining. however if you change the > input > value to some thing other than 'S'/'s', the log shows 'invalid argument of > input function' message. > > so this leads to me to believe that 'S' must have a special meaning. but > what is it? > > can someone please let me know? > > Thanks! > > Yu >


Back to: Top of message | Previous page | Main SAS-L page