Date: Fri, 28 Feb 2003 06:08:50 -0800
Reply-To: shiling zhang <shiling99@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: shiling zhang <shiling99@YAHOO.COM>
Organization: http://groups.google.com/
Subject: Re: Writing to an external file
Content-Type: text/plain; charset=ISO-8859-1
In case the MOD option did not work on your system. You may consider
to write the PGM into SEVERAL files, then include them all.
This will do the trick too.
HTH
"Janis Jekabsons" <janisj@arcor.de> wrote in message news:<b3m2u4$vu1$1@news.online.de>...
> From SAS online doc about the file statement options:
>
> MOD
> writes the output lines after any existing lines in the file. Default: OLD
> Restriction: MOD is not accepted under all operating environments.
> Operating Environment Information: For details, see the SAS
> documentation for your operating environment.
>
> See Also: OLD
>
>
> hth,
>
> Janis Jekabsons
>
> "Steve Jones" <st_jones77@yahoo.com> schrieb im Newsbeitrag
> news:07e0d599ad6abb7bb5d7a007dc2b8f68.43464@mygate.mailgate.org...
> > Hello everyone,
> > I have a dataset with 3 variables: range rangef pctn.
> > I am trying to write them to an external file.
> > The problem is that the external file gets overwritten
> > by subsequent 'put statements' in the data _null_ steps
> > below. For example the external file/output generated
> > from the code below contains only:
> >
> > run;
> >
> > I am sure I am doing something wrong. I'd
> > appreciate any pointers.
> >
> > Thanks,
> > SJ
> >
> > data _null_;
> > file &outfile;
> > put @2 "%upcase(&indepvar)";
> > put @2 'proc format' ';';
> > put @5 'value' @10 "&indepvar" ;
> > run;
> >
> > data _null_;
> > file "&outfile";
> > set bins3;
> > put @10 range rangef pctn percent9.2;
> > run;
> >
> > data _null_;
> > file "&outfile";
> > put @2 'run;';
> > run;
> >
> >
> > --
> > Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
>
>
> begin 666 cautend.gif
> H1TE&.#EA" `(`(#_`/___YF9F2P`````" `(```"!XR/J<OM70``.P``
> `
> end
|