f



Re: Include SAS code w/o including SAS code #9

Remember the formatting/indentation is lost in macro anyway as white space =
is not relevant. The best you can do is what mprint does for you - a new st=
atement on column 1 on on new line.
=20
-don> Date: Tue=2C 12 Aug 2008 08:38:31 -0600> From: savian001@GMAIL.COM> S=
ubject: Re: Include SAS code w/o including SAS code> To: SAS-L@LISTSERV.UGA=
..EDU> > Good Don. I should have remembered that trick from SGF. One minor i=
ssue=2C it> doesn't preserve formatting. Other than doing the string split =
myself=2C any> suggestions?> > Alan> > Alan Churchill> Savian> www.savian.n=
et> > > -----Original Message-----> From: SAS(r) Discussion [mailto:SAS-L@L=
ISTSERV.UGA.EDU] On Behalf Of Don> Henderson> Sent: Tuesday=2C August 12=2C=
 2008 7:37 AM> To: SAS-L@LISTSERV.UGA.EDU> Subject: FW: Include SAS code w/=
o including SAS code> > resending as I did not mean to send to just Andre> =
> ----------------------------------------> > From: donaldjhenderson@hotmai=
l.com> > To: wielki@ined.fr> > Subject: RE: Include SAS code w/o including =
SAS code> > Date: Tue=2C 12 Aug 2008 13:34:41 +0000> >> >> > Alan=2C> >> > =
If you want the generated SAS code try (untested):> >> > data _null_=3B> > =
file "code.sas"=3B> > length code $32000=3B> > code =3D resolve('%xyz')=3B>=
 > put code=3B> > run=3B> >> > You may want to format it (e.g.=2C new line =
whenever you start a new> statement).> >> > HTH=2C> > donh> >> > ----------=
------------------------------> >> Date: Tue=2C 12 Aug 2008 14:52:02 +0200>=
 >> From: wielki@INED.FR> >> Subject: Re: Include SAS code w/o including SA=
S code> >> To: SAS-L@LISTSERV.UGA.EDU> >>> >> Alan=2C> >> not precisely cle=
ar what you are searching> >> think thus also about this kind of program> >=
> in addition to the mprint mfile answer of ~data _null_> >> HTH> >> Andre>=
 >>> >> libname malibmac "d:\temp"=3B> >> options mstores sasmstore=3Dmalib=
mac=3B> >> %macro foobar(aarg)/store source des=3D'nothing or interresting'=
=3B> >> %put arg=3D&arg=3B> >> %mend=3B> >> %copy foobar/source=3B> >>> >>>=
 >>> >> Alan Churchill a =E9crit :> >>> All=2C> >>>> >>>> >>>> >>> Ok=2C I =
think this might be doable but I am drawing a blank.> >>>> >>>> >>>> >>> Su=
ppose I have this code:> >>>> >>>> >>>> >>> %macro xyz=3B> >>>> >>> data te=
mp.temp4=3B> >>>> >>> .do some sas stuff.> >>>> >>> run=3B> >>>> >>> %mend=
=3B> >>>> >>>> >>>> >>> Is there a way to write the macro statements out to=
 a file? I can run> them> >>> but I would also like to save them outside of=
 SAS.> >>>> >>> bname malibmac "d:\f\"=3B> >>>> >>> >>> Thanks=2C> >>>> >>>=
 Alan> >>>> >>>> >>>> >>> Alan Churchill> >>> Savian> >>> www.savian.net> >=
>>> >>>> >>> >> --> >> Andr=E9 WIELKI> >> INED (Institut National d'Etudes =
D=E9mographiques)> >> Service Informatique> >> 133 Boulevard Davout 75980 P=
aris Cedex 20> >> m=E9l : wielki@ined.fr t=E9l : 33 (0) 1 56 06 21 54> >> >=
 _________________________________________________________________> > Your =
PC=2C mobile phone=2C and online services work together like never> before.=
> > http://clk.atdmt.com/MRT/go/108587394/direct/01/> > ___________________=
______________________________________________> Your PC=2C mobile phone=2C =
and online services work together like never before.> http://clk.atdmt.com/=
MRT/go/108587394/direct/01/
_________________________________________________________________
Your PC=2C mobile phone=2C and online services work together like never bef=
ore.
http://clk.atdmt.com/MRT/go/108587394/direct/01/=
0
8/12/2008 3:06:41 PM
comp.soft-sys.sas 142827 articles. 4 followers. Post Follow

0 Replies
1083 Views

Similar Articles

[PageSpeed] 15

Reply: