CA View - Bulk Copy a Specific Report DD to Send to a Destination
search cancel

CA View - Bulk Copy a Specific Report DD to Send to a Destination

book

Article ID: 199792

calendar_today

Updated On:

Products

OM Deliver OM View

Issue/Introduction

The client would like take some View sysout and send it to a destination. 

What is the best way to do this?  Batch, online?

Environment

Release : 14.0

Component : CA View

Resolution

If the type of report to be copied is a standard text report (and not AFP or PDF), SARBCH /LOAD can be used to send the report to a physical-sequential file:

//XXXXXXXX JOB ...                                                
//SARBCH   EXEC PGM=SARBCH,PARM='VIEW_HLQ'  <=== MODIFY DB NAME   
//STEPLIB  DD  DISP=SHR,DSN=VIEW.CVDELOAD     <=== MODIFY, IF USED
//SYSPRINT DD  SYSOUT=*                                           
//REPORT   DD   SYSOUT=*                                          
//RPTOUT01 DD  DSN=XXXXXX.XXXXXX.RPTOUT01,                        
//             DISP=(,CATLG,DELETE),                              
//             UNIT=XXXX,VOL=SER=YYYYYY,                          
//             DCB=(RECFM=FB,LRECL=nnn,BLKSIZE=nnn0),          
//             SPACE=(CYL,(NNN,NNN),RLSE)                         
//SYSIN    DD   *  
/LOAD ID=XXXXXXXXXXXX GEN=NNNN SEQ=NN DDNAME=RPTOUT01
/*                                                                
//                                                                

After the report is put to a file, then a utility like IEBGENER can be used to send the report to somewhere else.