The program GSVXBAT is used to execute CA SYSVIEW commands in Batch.
The following JCL can be used to copy part of the SYSLOG to a member of a PDS:
//STEP0001 EXEC PGM=GSVXBAT,PARM='LINECNT=66,SHOWINP=YES'
//STEPLIB DD DISP=SHR,DSN=your_Sysview.CNM4BLOD
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COMMAND=(PRINT OPEN yourname)
COMMAND=(PRINT FROM x TO y,NOHEADER)
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:
- Type PROFILE GENERAL and hit enter.
- Select the Miscellaneous Section entry.
- Go to the bottom and you will see the section ‘Print and copy options’
- Change the Copy dataset name to the PDS name where the member yourname will be created.
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