CA View - Downloading of Reports to a dataset.
search cancel

CA View - Downloading of Reports to a dataset.

book

Article ID: 219121

calendar_today

Updated On:

Products

View

Issue/Introduction

What utility can I use to download reports with a specific FORMS ID to a dataset, as SARBCH doesn't seem to recognize that field? 

.SARBCH05  Logon successful for USERID1 to VIEW.SYSTEM1
./LOAD ID=ABCDEFGH GEN=1896 FORMS=ABC
.SARBCH10  Invalid keyword name "FORMS"

 

Environment

Release : 14.0

Component : CA View

Resolution

It was recommended that the client use the below SARGRW program, to create SARBCH /LOAD cards, for those reports with FORMS of ABC:

//XXXXXXXX JOB ...
//SARGRW01 EXEC PGM=SARGRW                                        
//STEPLIB  DD   DISP=SHR,DSN=VIEW.CVDELOAD   <=== Modify, if used            
//SYSUDUMP DD SYSOUT=*                                            
//SYSOUT   DD SYSOUT=*                                            
//SYSPRINT DD SYSOUT=*                                            
//OUTFILE  DD  DISP=(,CATLG,DELETE),                             
//             DSN=xxxxxx.xxxxxx.SARGRWOP, 
//             DCB=(RECFM=FB,LRECL=71,BLKSIZE=7100),             
//             SPACE=(TRK,(5,1),RLSE),                           
//             UNIT=xxxx,VOL=SER=xxxxxx
//SYSIN    DD *                                                   
/CONTROL SEQ=RID DATABASE=view_hlq     <=== Modify DB name 
/IF SUBSTR(FORMS,1,4) = 'ABC '                                    
/ OUTPUT '/LOAD ID='   COL(1) 
/ OUTPUT ID            COL(10)    
/ OUTPUT ' GEN='       COL(42)    
/ OUTPUT EDIT(GEN,'99999') COL(47)
/ OUTPUT ' SEQ='       COL(52)    
/ OUTPUT EDIT(SEQ,'99999') COL(57)
/END                              
/*                                
//          

Note: As there is no DDNAME=... field defined in the records, the subsequent run of SARBCH would require there being a "//SARLOAD DD" to create the corresponding physical-sequential file.