Date: Thu, 22 Dec 2005 14:44:48 +0000
Reply-To: toby dunn <tobydunn@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: toby dunn <tobydunn@HOTMAIL.COM>
Subject: Re: Macro generated SAS codes in LST file.
Content-Type: text/plain; format=flowed
To answer your question no there isn't. Mprint and/or Mfile is the closest
and that will only echo your SAS code in the log not the listing. You could
do this but it would be a pain in the neck to actually develope every macro
this way. You would have to write the code such that you load the data step
code into either a data set as data and print it.
data one ;
x = 1 ;
Y = 'A' ;
%macro test(DSN = ) ;
data __Junk ;
length Text $50 ;
Text = "proc print" ;
Text = " data = &DSN ;" ;
Text = "run ;" ;
data = __Junk noobs ;
data = &DSN ;
proc datasets ;
delete __Junk ;
%test( DSN = One )
Subject: Macro generated SAS codes in LST file.
Date: Wed, 21 Dec 2005 21:34:01 -0800
Wish you a merry christmas and happy new year.
Well, Just wondering !! Is there any way to view all macro generated
SAS codes in LST (Output) file ? I want users to view the sas codes
before the output of each code.
proc print data=&Dset;
In lst file we should have some thing like below,
PROC PRint data=Foo;
where amount >= 1000;
******** Output of proc print should come here ***************
I appreciate your help here.