Date: Tue, 19 Nov 2002 08:38:15 -0500
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mark Moran <mark.k.moran@CENSUS.GOV>
Subject: Re: To and Fro Mnemonic, Numeric and Character
Content-type: text/plain; charset=us-ascii
Thanks, Howard. Those are good ideas. I will check on whether we have a
separate document such as you mention; no one's ever brought it to my
attention if it exists but I can see your point. The main challenge right
now is the fact that we have temporarily moved offices and we are sorting
of all living out of suitcases, in a manner of speaking.
TA.DOC.GOV To: SAS-L@LISTSERV.UGA.EDU
Sent by: "SAS(r) cc:
Discussion" Subject: Re: To and Fro Mnemonic, Numeric and Character
Please respond to
I've never tried to memorize SAS syntax details. It's easy enough to look
That is, it's easy if you know the name of the procedure or statement or
function or format or whatever. If you don't know that much, it can be
So I would say it's most important to remember which is which, regarding
INPUT and PUT functions. What helps me is to remember the close parallel to
the INPUT and PUT *statements*. The INPUT statement is for reading external
files, where typically you have numeric data in character representation
and need to convert to binary representation. The PUT statement generally
does the opposite. So the INPUT function uses an informat to convert
character to numeric, while the PUT function uses a format to convert
numeric to character.
Another suggestion: use the online *doc* rather than help. It's available
the web. But you work at what must be among the biggest SAS customer sites,
so it is probably on one or more internal servers.
On Mon, 18 Nov 2002 13:16:32 -0500, Mark Moran <mark.k.moran@CENSUS.GOV>
>Paul, I meant something that would include helping remember how to write
>the format and informat specifications and their meanings. I guess that
>list would be much too long for a "mnemonic". We have recently moved
>offices, I can't find any SAS books, and when I go to online help on PC
>(Windows version) I see a lot of verbiage but no list of them with their
>>to a SAS 8.2 character variable of some format,
>just combine the format with the PUT function as
>put(numv, <numeric format specification>) and that is about it.
>>and vice versa?
>input (chvar, <numeric informat specification>) ...
>The rule itself seeming to be perhaps simler than a mnemonic rule that
>replace it, I admit to not having enough imagination to concoct the
>Maybe someone poetically inclined could offer an easy-to-remember rhyme :