Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
JCL to submit JOBS in JES2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
sangiah

Active User


Joined: 10 Jun 2005
Posts: 64

PostPosted: Fri Jun 10, 2005 9:30 pm    Post subject: JCL to submit JOBS in JES2
Reply with quote

Is anyone has a sample JCL to submit multiple JOBs a the same time in JES2.
Back to top
View user's profile Send private message
References
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

PostPosted: Fri Jun 10, 2005 9:32 pm    Post subject:
Reply with quote

You can use IKJEFT01 as you can see in this link.
http://ibmmainframes.com/viewtopic.php?t=2151&highlight=ikjeft01
Tell us if you have any doubt
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3381
Location: Charlotte,NC USA

PostPosted: Fri Jun 10, 2005 10:42 pm    Post subject: Re: JCL to submit JOBS in JES2
Reply with quote

You can always create one PDS member with any number of jobs:
Code:

//JOB1 JOB (...),CLASS=X,MSGCLASS=X
//STEP1 EXEC PGM=...
...
//JOB2 JOB (...),CLASS=X,MSGCLASS=X
//STEP1 EXEC PGM=...
...
//JOB3 JOB (...),CLASS=X,MSGCLASS=X
//STEP1 EXEC PGM=...
...


or, copy any number of individual jobs in a single step:

Code:

//SUBJOBS EXEC PGM=ICETOOL
//DFSMSG   DD   SYSOUT=*       
//TOOLMSG  DD   SYSOUT=*       
//TOOLIN   DD *
  COPY FROM(JOB1) TO(INTRDR)
  COPY FROM(JOB2) TO(INTRDR)
  ...
  COPY FROM(JOBn) TO(INTRDR)
//JOB1     DD DISP=SHR,DSN=MY.JCL(JOB1)
//JOB2     DD DISP=SHR,DSN=MY.JCL(JOB2)
...
//JOBn     DD DISP=SHR,DSN=MY.JCL(JOBn)
//INTRDR   DD SYSOUT=(*,INTRDR)
Back to top
View user's profile Send private message
sangiah

Active User


Joined: 10 Jun 2005
Posts: 64

PostPosted: Fri Jun 10, 2005 11:30 pm    Post subject:
Reply with quote

thanks all.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1