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

How to submit multiple jobs thru a single job?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Jan 20, 2007 12:36 am
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
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
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: 22
Location: Pune, India

PostPosted: Tue Jan 23, 2007 10:37 am
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

Moderator Emeritus


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

PostPosted: Tue Jan 23, 2007 7:11 pm
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
Patrick Bacelar

New User


Joined: 05 Sep 2022
Posts: 15
Location: Brazil

PostPosted: Thu Jun 08, 2023 8:42 pm
Reply with quote

Is it possible to add and override certain parameters in the job card for the submitted jobs? If so, how can we do it?
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1338
Location: Bamberg, Germany

PostPosted: Thu Jun 08, 2023 9:02 pm
Reply with quote

Patrick Bacelar wrote:
Is it possible to add and override certain parameters in the job card for the submitted jobs? If so, how can we do it?

Please start a new topic for your requirement.
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

 


Similar Topics
Topic Forum Replies
No new posts purge jobs with return code 0 and ret... JCL & VSAM 4
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT JCL to merge multiple tow into s... DFSORT/ICETOOL 6
No new posts Using Multiple IFTHEN and WHEN condit... SYNCSORT 12
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
Search our Forums:

Back to Top