MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need a JCl for submitting multiple Jobs from single JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sonika2008
Beginner


Joined: 17 Aug 2007
Posts: 20
Topics: 9

PostPosted: Fri Sep 21, 2007 10:10 am    Post subject: need a JCl for submitting multiple Jobs from single JCL Reply with quote

Hi,

I want to submit a multiple job(100 Jobs) from single JCL.is it possible can I submit all jobs from single JCL? if yes, please give me the test jcl?
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Fri Sep 21, 2007 11:06 am    Post subject: Reply with quote

Where are the jobs that you want to submit?
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Fri Sep 21, 2007 12:02 pm    Post subject: Reply with quote

You can write jobs to the initiators using IEBGENER. Reference the JCL pds on the SYSUT1 and the INTRDR on the SYSUT2. The following example shows how you'd submit a job to the CLASS B initiator.

Code:

//SUB01    EXEC PGM=IEBGENER
//SYSUT1   DD   DSN=YOURID.TEST.JCL(JOB02),DISP=SHR
//SYSUT2   DD   SYSOUT=(B,INTRDR)
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   DUMMY
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Sep 21, 2007 1:10 pm    Post subject: Reply with quote

or you can use a rexx exec to issue a load of tso submit commands which is what I do. How you generate those comands can vary - member list interrogation, hard-coded etc
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Sep 21, 2007 1:48 pm    Post subject: Reply with quote

There is no reason you can not submit 100 jobs from a single JCL member. Just include them all and type SUBmit on the command line. I suspect that submitting multiple jobs from a single member is pretty common considering how easy it is to generate JCL from Rexx or edit macros.
Back to top
View user's profile Send private message Visit poster's website
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Fri Sep 21, 2007 1:57 pm    Post subject: Reply with quote

This is what I have used for testing.
Code:
//*                                           
//SENDMSG  EXEC PGM=IKJEFT01                   
//SYSPROC  DD   DSN=XXX.USER.CLIST,DISP=SHR   
//SYSTSPRT DD   SYSOUT=*                       
//SYSTSIN  DD   *                             
SUBMIT 'XXX.TEST.COIN.CONVOFF(ADDR1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BADP1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BCED1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BCEQ1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BDCT1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BEQU1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BEXP1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BIIB1)';         
SUBMIT 'XXX.TEST.COIN.CONVOFF(BPCP1)';
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Fri Sep 21, 2007 3:17 pm    Post subject: Reply with quote

simple code the JCLs in ome member, end with // for each JCL
when you submit the member, JES will handle them
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group