Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to unload multiple job info from SAR to a single dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
arpita70003

New User


Joined: 03 Oct 2008
Posts: 14
Location: chennai

PostPosted: Wed Oct 08, 2008 8:11 pm    Post subject: How to unload multiple job info from SAR to a single dataset
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 08, 2008 8:26 pm    Post subject:
Reply with quote

What have you tried yourself and what errors did you receive ?
Back to top
View user's profile Send private message
arpita70003

New User


Joined: 03 Oct 2008
Posts: 14
Location: chennai

PostPosted: Wed Oct 08, 2008 8:48 pm    Post subject:
Reply with quote

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
View user's profile Send private message
arpita70003

New User


Joined: 03 Oct 2008
Posts: 14
Location: chennai

PostPosted: Wed Oct 08, 2008 8:50 pm    Post subject:
Reply with quote

Sorry that was only with the second job(XYZABCDE) info ...
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Wed Oct 08, 2008 8:55 pm    Post subject:
Reply with quote

How about trying this icon_rolleyes.gif
Code:
DISP=(MOD,CATLG,DELETE)
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7996
Location: Bellevue, IA

PostPosted: Wed Oct 08, 2008 8:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
arpita70003

New User


Joined: 03 Oct 2008
Posts: 14
Location: chennai

PostPosted: Fri Oct 10, 2008 9:11 am    Post subject:
Reply with quote

It worked fine...Thank you all icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us