View previous topic :: View next topic |
Author |
Message |
sonika2008 Beginner
Joined: 17 Aug 2007 Posts: 20 Topics: 9
|
Posted: Fri Sep 21, 2007 10:10 am Post subject: need a JCl for submitting multiple Jobs from single JCL |
|
|
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 |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Fri Sep 21, 2007 11:06 am Post subject: |
|
|
Where are the jobs that you want to submit? |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Fri Sep 21, 2007 12:02 pm Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Sep 21, 2007 1:10 pm Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Sep 21, 2007 1:48 pm Post subject: |
|
|
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 |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Fri Sep 21, 2007 1:57 pm Post subject: |
|
|
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 |
|
 |
videlord Beginner
Joined: 09 Dec 2004 Posts: 147 Topics: 19
|
Posted: Fri Sep 21, 2007 3:17 pm Post subject: |
|
|
simple code the JCLs in ome member, end with // for each JCL
when you submit the member, JES will handle them |
|
Back to top |
|
 |
|
|