Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How many JOBS we can submit in a Single JCL

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

New User


Joined: 01 Mar 2004
Posts: 4
Location: Bangalore

PostPosted: Mon Apr 05, 2004 12:23 pm    Post subject: How many JOBS we can submit in a Single JCL
Reply with quote

hello sir,

How many JOBS we can submit in a Single JCL?
Back to top
View user's profile Send private message

bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Apr 05, 2004 4:46 pm    Post subject:
Reply with quote

this question raised a debate here...
it seems there are no limit
depending on how u submit your job step with Iebgener and internal reader, or pure JES statements.
(JCL is limited in the number of steps per deck - I think 255)

look fore older posts in the same topic
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Wed Dec 28, 2005 3:58 pm    Post subject: Job
Reply with quote

Hi raghu_4412,

I think there is no limit. bcz as per the step limit only v have. a job may trigger another and more jobs.. no limit.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 5:03 pm    Post subject: Re: How many JOBS we can submit in a Single JCL
Reply with quote

There is no LIMIT in terms of number of job cards in a JCL.

Other factor may affect but not the number of job cards.

Regards,

Priyesh.
Back to top
View user's profile Send private message
anilbatta

New User


Joined: 13 Nov 2005
Posts: 22

PostPosted: Wed Dec 28, 2005 5:24 pm    Post subject:
Reply with quote

Hi

You can submit many number of jobs as you want based on certain conditions using COND parameter we can do this. Suppose you have executed one job Job1, and the return code of Job 1 is 4 and we can write this in a Jcl in such a way that if Job 1 RC is 4 then execute Job 2..etc

This can be possible in JCL and that's the feature of Mainframe.And apart from this, we can execute 255 steps in a single JCL.

Regards
Anilbatta
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 5:27 pm    Post subject: Re: How many JOBS we can submit in a Single JCL
Reply with quote

Quote:
You can submit many number of jobs as you want based on certain conditions using COND parameter we can do this. Suppose you have executed one job Job1, and the return code of Job 1 is 4 and we can write this in a Jcl in such a way that if Job 1 RC is 4 then execute Job 2..etc

Even if it is not done.... Cascading all the job cards one by one in the JCL is sufficient to run them all.

Regards,

Priyesh.
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Dec 28, 2005 5:42 pm    Post subject:
Reply with quote

the limit is 255, even its 255 it will give some problems in terms of resource sharing

kumar.p.v
Back to top
View user's profile Send private message
Imran

New User


Joined: 26 Dec 2005
Posts: 12
Location: Pune

PostPosted: Wed Dec 28, 2005 6:03 pm    Post subject:
Reply with quote

HI Priyesh

If we cascade by giving jobcards for each step then all the steps will execute at a time. I,E iT IS EQUIVALENT TO SUBMITTING THOSA MANY JOBS AT A TIME.

If the steps are not dependednt on each other then we can cascade.

Regards
Imran
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Dec 28, 2005 6:11 pm    Post subject: Re: How many JOBS we can submit in a Single JCL
Reply with quote

Hi Imran,

By cascading I meant to enlist all the jobs one after one in a JCL.

As anilbatta given above some details on how to run more than one jobs in a single JCL, I was giving another way of running more than one job in a single JCL. Like..

Code:
//JOB#1
//JOB#2
//
::
::
//JOB#N


Quote:
If we cascade by giving jobcards for each step then all the steps will execute at a time. I,E iT IS EQUIVALENT TO SUBMITTING THOSA MANY JOBS AT A TIME.

Again its not mendatory that all the enlisted job cards will be submitted at the same time, it may vary on various factors.

Regards,

Priyesh.
Back to top
View user's profile Send private message
Imran

New User


Joined: 26 Dec 2005
Posts: 12
Location: Pune

PostPosted: Wed Dec 28, 2005 6:15 pm    Post subject:
Reply with quote

Ya Priyesh

U r absolutely right..its not necessary that all jobs will be submitted at a time . It depends on the initiators and the JES.

Regards
Imran
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Mon Jan 28, 2008 1:00 pm    Post subject: Reply to: How many JOBS we can submit in a Single JCL
Reply with quote

Here I wanted to ask about one doubt related to same question,

I want to Run 3 Jobs from a Single Job based on the Return Code Respectively.

( I.e. Job two should Run based on the Return Code of First Job n similarly the JOb 3 based on the RC of Job 2 )

I dont want to copy all 3 jobs content in one Job ,

Please Suggest me the Solution with Code Example.
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: Mon Jan 28, 2008 8:35 pm    Post subject:
Reply with quote

Hello,

Have job 1 submit job 2 thru the internal reader when job 1 successfully completes. Have job 2 submit job 3 thru the internal reader when job 2 successfully completes.

The code to do this is simply an IEBGENER step that "writes" the next job/jcl to INTRDR.

If you are not familiar with the internal reader, there are several examples in the forum.
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Mon Jan 28, 2008 10:36 pm    Post subject: Reply to: How many JOBS we can submit in a Single JCL
Reply with quote

Could any one plzz show the example , how to use INTRDR with the Return code check?
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: Mon Jan 28, 2008 10:44 pm    Post subject:
Reply with quote

Hello,

Quote:
If you are not familiar with the internal reader, there are several examples in the forum.
It is customary to do at least a little work for yourself. . . .

http://ibmmainframes.com/viewtopic.php?t=26395&highlight=intrdr should help - hopefully, you can add a COND= to the EXEC statement. . .
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: Mon Mar 17, 2008 5:07 am    Post subject:
Reply with quote

Hello,

You cannot do that with jcl.

I suggest you re-think the implementation of your requirement.

One way would be to have MASTERJB end once JOB1 is submitted. Then either add additonal steps to JOB1 to be run conditionally or have another submit step that would conditionally run when the rc is as you need.

Is there some reason to submit JOB1 rather than just including the JOB1 process(es) in MASTERJB to be run conditionally?
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Mon Mar 17, 2008 12:57 pm    Post subject:
Reply with quote

Hi,

with Context to my previous Post , if we cannot capture the RC of jobs submitted using INTRDR,
then whether we can use REXX program for this ??

My requirement is as like below given,
I have 5 job in a dataset , and i have to run each job based on the Return Code of the Previous job,

How can i fulfill the Requirement ??
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10373
Location: italy

PostPosted: Mon Mar 17, 2008 1:02 pm    Post subject: Reply to: How many JOBS we can submit in a Single JCL
Reply with quote

... Use a scheduler
... add a step to each job to submit the next one
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: Mon Mar 17, 2008 4:42 pm    Post subject:
Reply with quote

Hello,

Quote:
I have 5 job in a dataset , and i have to run each job based on the Return Code of the Previous job,
What business reason is there that these be 5 separate jobs icon_confused.gif

Easier to understand and maintain would be 1 job with 5 steps conditionally executed. . .
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Mon Mar 17, 2008 7:14 pm    Post subject:
Reply with quote

Hi ,
i cannot add any step in the 5 jobs which i have to run,

Just for example i have mentioned 5 jobs, BTW the actual requirement is as like i want to automate the Batch cycle which is having a set of nearly 30 jobs in a dataset each for different scenario.

and almost all are depending on the previous job RC,
so to fulfill this requirement i created a master job , which is submitting the jobs form the dataset using INTRDR,
however here all the jobs are getting submitted in a random order, and i am not able to schedule them as per the required order ,

Now i want to know , is there any way, through which i can schedule the jobs ,
or through the REXX pgm i can capture the RC of the JObs submitted?

Kindly guide me .
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: Mon Mar 17, 2008 7:49 pm    Post subject:
Reply with quote

Quote:
is there any way, through which i can schedule the jobs
Kindly guide me .


Kindly use Enrico's suggestion and implement your requirement using the system scheduler software on your system.

Your requirement is normal and is one of the main reasons there is scheduling software.
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 Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts How many people submit job? Pedro All Other Mainframe Topics 2 Thu Oct 26, 2017 2:59 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts self-restarting jobs in OPC jzhardy IBM Tools 1 Mon Aug 21, 2017 10:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us