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 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 ?
Comments: To: "Dr. Hans-Christian Waldmann" <waldmann@SAMSON.FIRE.UNI-BREMEN.DE>
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


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