The SYSLOG command in SYSVIEW displays the system log data set. This document explains the process to copy part of the SYSLOG to a member in a PDS using a Batch job.
The program GSVXBAT is used to execute SYSVIEW commands in Batch. The following JCL can be used to copy part of the SYSLOG to a member of a PDS:
//jobcard
//STEP0001 EXEC PGM=GSVXBAT,PARM='LINECNT=66,SHOWINP=YES'
//STEPLIB DD DISP=SHR,DSN=your_Sysview.CNM4BLOD
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COMMAND=(SYSLOG)
COMMAND=(PRINT OPEN yourname)
COMMAND=(PRINT FROM x TO y,NOHEADER)
COMMAND=(PRINT CLOSE)
//
Notes:
1.- The command PRINT OPEN yourname will create the member yourname in the PDS defined in the Profile. Change yourname with your desired name.
In order to define the PDS do the following:
It is possible to preallocate the PDS before running the PRINT command. The characteristics are:
Organization . . . : PO
Record format . . . : VBA
Record length . . . : 133
Block size . . . . : 6160
If the PDS is not preallocated it will be allocated when the first PRINT command is executed.
2.- In the command PRINT FROM x TO y,NOHEADER replace x and y with the first and last line that you want to copy to the member MEMBER