Date: Mon, 26 Jul 2010 16:25:04 -0400
Reply-To: Arthur Tabachneck <art297@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@NETSCAPE.NET>
Subject: Re: SAS macros
Dan,
I don't think the OP is trying to solve a particular problem but, rather,
simply enquiring whether SAS can do exactly what you thought he/she was
asking and, if so, an example of code that would allow such functionality.
Art
---------
On Mon, 26 Jul 2010 10:18:12 -0700, Nordlund, Dan (DSHS/RDA)
<NordlDJ@DSHS.WA.GOV> wrote:
>> -----Original Message-----
>> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
>> Arthur Tabachneck
>> Sent: Monday, July 26, 2010 8:03 AM
>> To: SAS-L@LISTSERV.UGA.EDU
>> Subject: Re: SAS macros
>>
>> Francogrex,
>>
>> The answer again is yes but, as I don't have access to SAS 9.2, I'll
>> have to leave showing you how to do it to someone else. I'm pretty
>> sure that proc fcmp could easily do what you ask.
>>
><<<snip>>>
>> >
>> > Hi Art, thanks for forwarding to the list. I know that one can use
>> > "do" for iteration but that's not what I'm after; What I would like
>> to
>> > know is whether one is able to add a syntax layer to SAS somehow, so
>> > such example expression as it is syntaxed:
>> > {For i -> 1:10
>> > print i}
>> > become runnable in one's SAS.
>
>Some clarification is still needed maybe. This last response suggests
that the OP wants wants SAS to interpret another language so that the
actual expression can be dropped into a data step and have it
interpreted "correctly", e.g.
>
>Data _null_;
> {For i -> 1:10
> Print i}
>Run;
>
>and the data step will print out the sequence of numbers. I guess my
question is what is the bigger picture here? What problem is the OP trying
to solve?
>
>Dan
>
>Daniel J. Nordlund
>Washington State Department of Social and Health Services
>Planning, Performance, and Accountability
>Research and Data Analysis Division
>Olympia, WA 98504-5204
|