Sample JCL to dump multiple log data sets into one file.
search cancel

Sample JCL to dump multiple log data sets into one file.

book

Article ID: 415755

calendar_today

Updated On:

Products

Vantage Storage Resource Manager

Issue/Introduction

We have over 20 datasets available for Vantage Performance Object (O02200) and how to send these data sets to Broadcom for review?

Resolution

The following sample JCL dumps all the data sets into one file.

//JOB CARD
//* JCL TO DUMP AND TERSE - COMBINE 
//****************************************************            
//*       DELETE final output, if any (cleanup)      *            
//****************************************************            
//DELETE   EXEC  PGM=IDCAMS,REGION=1024K                          
//SYSPRINT DD  SYSOUT=*                                           
//SYSIN    DD  *                                                  
   DELETE 'dataset.name.for.tersed.dfdss.files'                                 
//****************************************************            
//*       DUMP  datasets                             *            
//****************************************************            
//DSSDUMP  EXEC  PGM=ADRDSSU,COND=EVEN                            
//SYSPRINT DD  SYSOUT=*                                           
//OUTDD1   DD DSN=&DMP,                                           
// UNIT=3390,SPACE=(CYL,(5,5),RLSE),                              
// DISP=(,CATLG,DELETE)                                           
//SYSIN    DD    *                                                
 DUMP OUTDD(OUTDD1) -                             
    DS(INCL( -                                    
    %%DSNPFX%%.O02200.sys.Dyyyddd.THHMMSS -
    %%DSNPFX%%.O02200.sys.Dyyyddd.THHMMSS -
    %%DSNPFX%%.O02200.sys.Dyyyddd.THHMMSS -
    )) -                                          
           CANCELERROR -                          
           OPTIMIZE(1) -                          
           TOLERATE(ENQF) -                       
           WAIT(2,2)                              
/*                                                
//TERSE    EXEC PGM=AMATERSE,PARM=PACK,REGION=0M  
//SYSPRINT DD   SYSOUT=*                          
//SYSUT1   DD   DISP=SHR,DSN=&DMP                 
//SYSUT2   DD   DISP=(,CATLG),UNIT=3390,          
//       DSN=dataset.name.for.tersed.dfdss.files,               
//       SPACE=(CYL,(50,50),RLSE)                 
/*
//FTPSTEP3 EXEC PGM=FTP,PARM='(EXIT=08'
//SYSTCPD  DD DSN=VTAM.TCPIP.TCPIP.DATA,DISP=SHR
//SYSPRINT DD SYSOUT=*
//OUTPUT   DD SYSOUT=*
//INPUT    DD *
supportftp.broadcom.com
[email protected]
password

cd /siteid/case number/files_from_customer/
bin
put 'dataset.name.for.tersed.dfdss.files' file.name.on.case
quit
//

Where

%%DSNPFX%%.O02200.sys.Dyyyddd.THHMMSS is input log data sets to dump to one file and attach to the case. In the above sample JCL, three data sets are listed and can have more number of data sets.
'dataset.name.for.tersed.dfdss.files' is output data set.
where:
[email protected] is the email address you use to log on to Broadcom Support Online.
password is the password you use to log on to Broadcom Support Online.
siteid is your SiteID setup on Broadcom Support Online. This is a 7-digit numeric padded on the left with zeroes, e.g. 0123456.
case number is the case number you want to upload the file into.
file.name.on.case is the name the file will have on the FTP server (name which shows up on the case). As best practice,  it is a good idea to include a qualifier of .TRS in the file.name.on.case to indicate to Broadcom personnel that the file is tersed.