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 submit multiple jobs thru a single job?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
madishetty

New User


Joined: 04 Sep 2006
Posts: 1
Location: hyderabad

PostPosted: Sat Jan 20, 2007 12:32 am    Post subject: How to submit multiple jobs thru a single job?
Reply with quote

Hi all,

Could anyone please tell me as to how to submit multiple jobs(which are in a single PDS) thru a single job?

Regards,
Pavan
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 20, 2007 12:36 am    Post subject:
Reply with quote

Hello,

Are the jobs in different members in the pds or all in one member?

Either may be handled by running an IEBGENER that copies the selected member(s) to the internal reader.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Sat Jan 20, 2007 12:39 am    Post subject: Re: How to submit multiple jobs thru a single job?
Reply with quote

Please do a search of the forum, there are many post regarding this subject. If you cannot find the posts, or they do not satify your questions, please come back.

Thanks,
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Sat Jan 20, 2007 1:41 am    Post subject:
Reply with quote

JUST PASS THE PARAMETERS

JCLLIB, JCL1 AND JCL1

//*
//SUBMIT1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=&JCLLIB1(&JCL1),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
//*
//SUBMIT2 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=&JCLLIB2(&JCL2),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
//
Back to top
View user's profile Send private message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 23
Location: Pune, India

PostPosted: Tue Jan 23, 2007 10:37 am    Post subject: Confusion in Previous solution
Reply with quote

Still the answer is not clear plz even i have doubt in the same question..

plz explain it again with more example.

c ya
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jan 23, 2007 7:11 pm    Post subject:
Reply with quote

Hello,

What Masade posted
Code:
//SUBMIT2 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=&JCLLIB2(&JCL2),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY

is exactly what you need. It is a complete example. All you have to do is change the &JCLLIB2 to the name of the library that contains the job you want to submit and change &JCL2 to the name of the JCL member you want to submit.

There are 2 sets (1&2) because you said your requirement was to submit 2 jobs. The example given allows these to be placed in a PROC and resolved at runtime by substituting symbolic parameters. If you hard-code the library name(s) and member name(s) you will not be able to symbolically replace at run-time.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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