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 Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm


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