| Date: | Wed, 15 Jul 2009 16:50:11 -0400 |
| Reply-To: | "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV> |
| Subject: | suggest: logheader |
|
| Content-Type: | text/plain; charset=us-ascii |
suggestion:
option: logheader
group : logcontrol
which writes something like this to at the beginning of the SAS log
before initstmt and autoexec processing:
PASS-INFO DateTime =0=41D74B7F0549EB85
PASS-INFO Host =1=RJF2-012358
PASS-INFO SysId =2=40180
PASS-INFO UserId =3=RJF2
PASS-INFO SysScpL =4=XP_PRO
PASS-INFO SysVlong =5=9.02.02M0P011509
PASS-INFO MemSize =6=1824472320
PASS-INFO SortSize =7=67108864
PASS-INFO SumSize =8=0
PASS-INFO SysIn =9= #
notes:
* numbers between the equal signs indicate array indices for the
read-log program
* DateTime is in hex16. for approximately "7/15/2009 4:36:22 PM"
* SysIn is blank because this came from a session, not a batch job;
the pound-sign (#) is an end-of-line marker for the read-log program.
The informed and well-read will recognize this as the header that
the LogParse macro writes:
Programmatically Measure SAS(r) Application Performance
On Any Computer Platform,
With the New LOGPARSE SAS Macro.
Raithel, Michael
http://www2.sas.com/proceedings/sugi30/219-30.pdf
Option Value Information For SAS Option LOGHEADER
Option Value: NOLOGHEADER
Option Scope: Default
How option value set: Shipped Default
Option Definition Information for SAS Option LOGHEADER
Group= LOGCONTROL
Group Description: LOGCONTROL
Description: print job, session, and user information to log
Type: The option value is of type BOOLEAN
When Can Set: Session startup (command line or config) only
Restricted: Your Site Administrator can restrict modification of
this option
benefits:
users will not have to write their own logheader program
http://www.sascommunity.org/wiki/Saving_sas_logs
possible enhancements:
option logheaderlist = MemSize SortSize SumSize
see also:
http://www.sascommunity.org/wiki/Reading_job_logs
Sincerely
Ron Fehd the log maven CDC Atlanta GA USA RJF2 at cdc dot gov
Ronald J. Fehd, IT Spec
HelpDesk Level 3: SAS
CDC SAS site representative
|