IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SARBCH REPORT DD writing error


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kris_madras
Warnings : 1

New User


Joined: 04 Jul 2005
Posts: 31

PostPosted: Tue Sep 15, 2020 4:22 pm
Reply with quote

This is a strange error. Please help me how to fix this. If I use a File for //REPORT, I could see only 1 record but if I use //REPORT DD SYSOUT=*, I could see 2 records are coming. actually I need two records in the //REPORT file name of the data set but getting only first record. Job is giving RC=16 because -1 gen jobs are not there in SAR.


/
Code:
/CA7SART1 JOB (TEST,T),T,MSGCLASS=X,CLASS=T,NOTIFY=&SYSUID           
//STEP01  EXEC PGM=SARBCH                                             
//SYSPRINT DD SYSOUT=*                                               
//REPORT   DD DSN=TST1.KRIS.REPORT,                                         
//         DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,                               
//         SPACE=(CYL,(5,5),RLSE),                                   
//         DCB=(RECFM=FBA,LRECL=133,BLKSIZE=0)                       
//SYSIN    DD *                                                       
/LIST ID=JOB1 GEN=0                                               
/LIST ID=JOB1 GEN=-1                                             
/LIST ID=JOB2  GEN=0                                               
/LIST ID=JOB2  GEN=-1                                             

/*


In the REPORT file - TST1.KRIS.REPORT, I am getting only 1 record

ID Jobname Jobid Gen Seq Arc Date Arc Time Loc Lines Pages Blocks Xcode
-------------------------------- -------- -------- ----- ----- ---------- -------- ---- --------- -------- ------ ------
JOB1 JOB1 JOBXXXX 178 1 09/13/2020 10:48:20 PERM 7408 7 90


But if I use //REPORT DD SYSOUT=*, I could see 2 records are coming JOB1 and JOB2

ID Jobname Jobid Gen Seq Arc Date Arc Time Loc Lines Pages Blocks Xcode
-------------------------------- -------- -------- ----- ----- ---------- -------- ---- --------- -------- ------ ------
JOB1 JOB1 JOBXXXX 178 1 09/13/2020 10:48:20 PERM 7408 7 90

ID Jobname Jobid Gen Seq Arc Date Arc Time Loc Lines Pages Blocks Xcode
-------------------------------- -------- -------- ----- ----- ---------- -------- ---- --------- -------- ------ ------
JOB2 JOB2 JOBXXXX 178 1 09/13/2020 10:48:20 PERM 7408 7 90


JOB1 and JOB2 doesn't have -1 generations.
Back to top
View user's profile Send private message
kris_madras
Warnings : 1

New User


Joined: 04 Jul 2005
Posts: 31

PostPosted: Tue Sep 15, 2020 4:42 pm
Reply with quote

I gave DISP=MOD. Now it is writing 2 records to the output REPORT file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Need help on formatting a report DFSORT/ICETOOL 14
Search our Forums:

Back to Top