Copy part of SYSLOG to a dataset using Batch job
search cancel

Copy part of SYSLOG to a dataset using Batch job

book

Article ID: 187579

calendar_today

Updated On:

Products

SYSVIEW Performance Management

Issue/Introduction

The SYSLOG command in CA 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.

Environment

Release : 16.0

Component : SYSVIEW

Resolution

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:

//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:

  •      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

Additional Information

Information about GSVXBAT (Batch Interface) can be found at the following link:
 
 
For more information about the SYSLOG and PRINT commands use the HELP SYSLOG and HELP PRINT in CA Sysview panels.