BookmarkSubscribeRSS Feed
Peter_C
Rhodochrosite | Level 12

In SAS9.3 the LOGPARM options which enable date and time and process-id to be added to a LOG file name, are also supported in the name of an ALTLOG file

for some time I have maintained a collection of updates to ensure for every SAS session (display manager) I keep a copy of the log. (they are very easy to admin/delete, but almost always impossible to replace). The techniques varied from platform to platform and through releases of SAS.

Since release 6.07, the ALTLOG option has named a file to which a copy of the log is written.

On zOS it was easy to add system generated dates and times to the JCL or script to invoke SAS.

For unix and windows platforms, I have been keeping a few programs which update a config file with a new ALTLOG file name as each session starts.

From SAS9.3 I shall be able to retire these old solutions, and add to my config file something as simple as

-logparm "rollover=session"

-altlog !mySASfiles\altlog#d#b#Y.#H#M#s.#p.log

(should you want to try this out, these options can be added to the command which invokes SAS,

(or inserted in a sasv9.cfg file in your "My Documents" folder and invoke SAS.exe with NO options (when it searches according to the SAS9.2 rules at http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/a000104286.htm#searchrules

( which are probably the same as the rules for SAS9.3 at http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/p0bmj7wjme32ayn1h4wim7trkhp6....

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 962 views
  • 1 like
  • 1 in conversation