LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 17 May 2004 11:23:17 -0400
Reply-To:     "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject:      tip: v9.1 macro option: source
Content-Type: text/plain; charset="us-ascii"

well, it's a good thing I went to the New&Shorter SUGI Opening Session!

I actually learned something about the New&Improved macro option source which was a SASware Ballot item that was implemented.

from v9.1 OnLineDoc for %macro statement note: using the macro option 'store' requires options mStored SASmStore=<libref>

\begin{quote} Example 4: Using the %MACRO Statement with the SOURCE Option The SOURCE option combines and stores the source of the compiled macro with the compiled macro code. Use the %COPY statement to write the source to the SAS log. For more information about viewing or retrieving the stored source, see %COPY Statement.

/* commentary */ %macro foobar(arg) /store source des="This macro does not do much"; %put arg = &arg; * this is commentary!!!; %* this is macro commentary; %mend /* commentary; */; /* Further commentary */ NOTE: The macro FOOBAR completed compilation without errors.

%copy foobar/source; %macro foobar(arg) /store source des="This macro does not do much"; %put arg = &arg; * this is commentary!!!; %* this is macro commentary; %mend /* commentary; */;

\end{quote}

the %COPY statement has input and output options input: library = <libref> of macro catalog outfile: <fileref> if outfile is blank then 'source' writes to log

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov OpSys: Win_Pro Ver: 9.1 (TS M0) --> cheerful provider of UNTESTED SAS code from the Clue?Gee!Wrx <--


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