| Valid in: | Configuration file, SAS invocation |
| Category: | Log and procedure output control: SAS log |
| PROC OPTIONS GROUP= | LOGCONTROL |
| Restriction: | LOGPARM= is valid only in line mode and in batch mode |
| Note: | This option cannot be restricted by a site administrator. For more information, see Restricted Options. |
| See: | LOGPARM= System Option: z/OS in SAS Companion for z/OS |
The name of the new log file is determined by the value of the LOG= system option. If LOG= does not contain a directive, however, the name would never change, so the log would never roll over, even when ROLLOVER=AUTO.
LOG System Option: Windows in SAS Companion for Windows
LOG= System Option: z/OS in SAS Companion for z/OS
|
%l or #l 1
|
||
|
%p or #p 1
|
||
|
%v or #v 1
|
||
| 1Because %v, %l, and %p are not a time-based format, the log filename will never change after it has been generated. Therefore, the log will never roll over. In these situations, specifying ROLLOVER=AUTO is equivalent to specifying ROLLOVER=SESSION. | ||
sas -log "test%H%M.log" -logparm "rollover=auto"
sas -log "test%H%M.log" -logparm "rollover=session"
sas -log "test%H%M.log" -logparm "rollover=none"
sas -log "test%v.log" -logparm "rollover=session"SAS replaces the directive %v with process_IDvn, where process_ID is a numeric process identifier that is determined by the operating system and n is an integer number, starting with 1. The letter v that is between process_ID and n is always a lowercase letter.