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 the jobs are assigned in JES when the job name is same

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

New User


Joined: 06 Nov 2008
Posts: 10
Location: Chennai

PostPosted: Thu May 07, 2009 12:22 pm    Post subject: How the jobs are assigned in JES when the job name is same
Reply with quote

Hi,
I have submitted five jobs with the same JOB name thru INTRDR utility from one ps file. The jobs ids are assgned correctly.

JOBNAME JobID
TESTJOBS JOB00001
TESTJOBS JOB00002
TESTJOBS JOB00003
TESTJOBS JOB00004
TESTJOBS JOB00005

But the jobs are running in the following way.
JOBNAME JobID WPos
TESTJOBS JOB00001 4
TESTJOBS JOB00002 2
TESTJOBS JOB00003 1
TESTJOBS JOB00004 0
TESTJOBS JOB00005 3

I need to execute the job in same order how the job-id was created.

JOBNAME JobID WPos
TESTJOBS JOB00001 1
TESTJOBS JOB00002 2
TESTJOBS JOB00003 3
TESTJOBS JOB00004 4
TESTJOBS JOB00005 5

Is there any way to execute the job in above order, Please give me a suggestion.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu May 07, 2009 12:33 pm    Post subject: Reply to: How the jobs are assigned in JES when the job name
Reply with quote

ask Your support

options ( to be enabled by your support )

a dedicated class ( only one initiator )

a change to the jes2 parameters to have only one converter task

rough event sequence approximation
job is beng read thru the internal reader
job is being converted to the internal text format
job is flagged as ready to be executed

if the converter is single thread the execution sequence will be the same as the read/submit sequence

if the converter tasks are more than one
the moment where a job will be in the ready queue depends on the job' complexity

tested !
two converter tasks
one large job
4, smaller jobs
all the 4 smaller got scheduled before the large one

search the forum, the issue has been discussed a few times
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu May 07, 2009 3:33 pm    Post subject: Re: How the jobs are assigned in JES when the job name is sa
Reply with quote

SanthamoorthyRajamani wrote:
Is there any way to execute the job in above order
Yes, no, maybe - depends on your site set-up, as Enrcio said. At my shop we can not submit more than five "parallel" jobs from a given RACF ID - what sueestion can you have to avoid this, probabaly nothing which would work at my site.

However, for your case, it seems if you "trigger" the jobs the way you need can be one of the choices -- that is, which job you want to complete first, trigger it first, after successful completion of this first job trigger the job you want to complete second and so on . . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Thu May 07, 2009 5:30 pm    Post subject:
Reply with quote

Controlling job execution sequence is site specific to a large degree. You can force them to execute in the desired order by adding a step to the end of job 1 to submit job 2 into the internal reader and so forth, then submitting only job 1; if you have to submit all 5 at once this method won't work and you must consult your site support group.
Back to top
View user's profile Send private message
SanthamoorthyRajamani

New User


Joined: 06 Nov 2008
Posts: 10
Location: Chennai

PostPosted: Thu May 07, 2009 5:31 pm    Post subject: Reply to: How the jobs are assigned in JES when the job name
Reply with quote

Thanks a lot Anuj & enrico.
I will check with our mainframe support team for this.

In our system we can submit n-number of jobs at a time with the same name. Mean time as you suggersted will modify our job to submit after the completion of prior job.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu May 07, 2009 5:39 pm    Post subject:
Reply with quote

You're welcome, please keep us posted with the final solution . . .

Have a good one . . . icon_smile.gif
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Sat May 09, 2009 3:49 pm    Post subject:
Reply with quote

Have you tried coding relevant /*PRIORITY cards in the JCL. As long as you can make sure the first job goes through conversion first this could fix your problem. Assuming your sysprogs have not tweaked the system too much
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 How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Predicting jobs which are about to re... kpanchabhai85 DFSORT/ICETOOL 4 Thu Jun 30, 2016 7:51 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
This topic is locked: you cannot edit posts or make replies. Jobs At HCL Technologies - Weekend Dr... mjadwani2785 Mainframe Jobs 0 Thu Feb 18, 2016 8:31 pm


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