View previous topic :: View next topic
|
Author |
Message |
arpita70003
New User
Joined: 03 Oct 2008 Posts: 14 Location: chennai
|
|
|
|
Hi All,
How to unload multiple job info from SAR to a single dataset.
Can it be done using a single job step of SARBCH? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What have you tried yourself and what errors did you receive ? |
|
Back to top |
|
|
arpita70003
New User
Joined: 03 Oct 2008 Posts: 14 Location: chennai
|
|
|
|
yeah i tried to give it in the same sysin card like..
Code: |
//*******H JOB (CKDC),'ARPITA',CLASS=0,MSGCLASS=0,
// NOTIFY=&SYSUID
//STEP0 EXEC UCC11
//STEP1 EXEC PGM=SARBCH,PARM='SAR database'
//REPORT DD DSN=******.SARDST.OUTJCL1,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=1330,DSORG=PS)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
/PRINT ID=ABCDEFGH,DDNAME=REPORT
/PRINT ID=XYZABCDE,DDNAME=REPORT
/* |
the job went fine but the output was only with the first job (ABCDEFGH)info. |
|
Back to top |
|
|
arpita70003
New User
Joined: 03 Oct 2008 Posts: 14 Location: chennai
|
|
|
|
Sorry that was only with the second job(XYZABCDE) info ... |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
How about trying this
Code: |
DISP=(MOD,CATLG,DELETE) |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I don't have SAR so I don't know for sure, but have you tried DISP=(MOD,CATLG)? If it's only got the last one in it, that implies the dataset was closed, reopened, and rewritten with the second file. |
|
Back to top |
|
|
arpita70003
New User
Joined: 03 Oct 2008 Posts: 14 Location: chennai
|
|
|
|
It worked fine...Thank you all |
|
Back to top |
|
|
|