Date: Tue, 9 May 2000 14:16:55 "GMT"
Reply-To: "David L. Ward" <dward@SASHELP.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Ward" <dward@SASHELP.COM>
Subject: Re: save pgm contents to a file ?
Content-Type: text/plain; charset="us-ascii"
I think you are looking for the SAS global statement DM. The DM (Display Manager) statement allows you to call global commands from SAS code, i.e.
DM 'file my-file-location replace';
more sas statements ...
This way, each time your code is executed, the contents of the PGM are written to your file.
David Ward
SASHelp.com
-----Original Message-----
From: Dr. Hans-Christian Waldmann <waldmann@SAMSON.FIRE.UNI-BREMEN.DE>
Sent: 5/9/00 1:32:11 PM
Subject: save pgm contents to a file ?
> --
>
>Dear list,
>
>since I deeply prefer programming in the pgm window over using pulldown
>menus, forms and other fancies, I am looking for hints on how to save
>the _current_ content of the pgm window (my sas statements to be executed)
>to an externale file. I don't care whether they be saved before or past
>execution; and I don't care about the log. What I have in mind is kind
>of "FILE /home/sas/thisfile" as you would type on the command line, but this
>time being submitted with the code itself. I have already used the html-
>formatting-macros that _capture_ anything between between an open/close
>statement, so this might be it. Any suggestions anybody ?? If it's a
>trivial matter, pardon me, else answer me, and I'll post a summary.
>
>TIA
> Hans-Christian Waldmann
>
>
>
> +-----------------------------------------------------------------------+
>| Dr. Hans C Waldmann | waldmann@samson.fire.uni-bremen.de |
>| | thinklab@alf.zfn.uni-bremen.de |
>| Methodology & Applied Statistics | |
>| in Psychology & Health Sciences | http://samson.fire.uni-bremen.de |
>| | |
>| ZFRF University of Bremen | Tel/Fax: +49 (0)421 218 4715/4617 |
>| Grazer Str. 6 Room 3400 | |
>| 28359 Bremen Germany | friend of: AIX PERL ADABAS SAS TEX |
>+-----------------------------------------------------------------------+
>
_____________________________________________________
Sent by SASHelp.com user David L. Ward
SASHelp.com - On-Line SAS Resources
Web interface to SAS-L at http://www.sashelp.com/sasl
|