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

JCL to submit 3 jobs one after another


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Jun 04, 2010 6:25 am
Reply with quote

Maybe he's thinking about the old phrase of 'flogging a dead horse'.....grin....
The way I think he sees it is if the OP abandons the thread, we should too.
dneufarth wrote:
I thought the point was discussion.
How about we start up topics such as "Discussion: Is one job better than three?"
Back to top
View user's profile Send private message
toughhou

New User


Joined: 21 Jan 2010
Posts: 5
Location: China

PostPosted: Mon Nov 12, 2012 6:59 pm
Reply with quote

Here I have two ways:
1. Using 3 steps
//JOB001 JOB MSGCLASS=A,NOTIFI=&SYSUID
//STEP01 EXEC PGM=PGM01
//FILEIN1 DSN=TOUGH.TEST.FILE.IN1,DISP=SHR
//FILEOUT1 DSN=TOUGH.TEST.FILE.OUT1,DISP=.....
//STEP02 EXEC PGM=PGM02
//FILEIN2 DSN=STEP01.FILEOUT1,DISP=SHR
//FILEOUT2 DSN=TOUGH.TEST.FILE.OUT2,DISP=....
//STEP03 EXEC PGM=PGM03
//FILEIN3 DSN=STEP02.FILEOUT2,DISP=SHR
//FILEOUT3 DSN=TOUGH.TEST.FILE.OUT3,DISP=....

2. Using 3 jobs
JCL1:
//JOB0001 JOB .....
//STEP01 EXEC PGM=PGM01
//FILEIN1 DSN=TOUGH.TEST.FILE.IN1,DISP=SHR
//FILEOUT1 DSN=TOUGH.TEST.FILE.OUT1.DISP=....
//STEP02 EXEC PGM=IKJETF01
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SUBMIT TOUGH.TEST.JCL(JCL2)
//

JCL2:
//JOB0001 JOB .....
//STEP01 EXEC PGM=PGM02
//FILEIN2 DSN=TOUGH.TEST.FILE.OUT1,DISP=SHR
//FILEOUT2 DSN=TOUGH.TEST.FILE.OUT2.DISP=....
//STEP02 EXEC PGM=IKJETF01
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SUBMIT TOUGH.TEST.JCL(JCL3)
//

JCL3:
//JOB0001 JOB .....
//STEP01 EXEC PGM=PGM01
//FILEIN3 DSN=TOUGH.TEST.FILE.OUT2,DISP=SHR
//FILEOUT3 DSN=TOUGH.TEST.FILE.OUT3.DISP=....

Thank you for the contribution, but it is best to reply to topics that are currently active.
Also, when postng JCL, code, data etc use the Code tag for alignment and readability. Simply copy/paste from your mainframe screen and do Not try to adjust the spacing. d
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Nov 12, 2012 7:06 pm
Reply with quote

I think he found a solution over 2 years ago.
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 -> JCL & VSAM Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top