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

How the jobs are assigned in JES when the job name is same


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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu May 07, 2009 12:33 pm
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

Superior Member


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

PostPosted: Thu May 07, 2009 3:33 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu May 07, 2009 5:30 pm
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
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

Superior Member


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

PostPosted: Thu May 07, 2009 5:39 pm
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: 262

PostPosted: Sat May 09, 2009 3:49 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
Search our Forums:

Back to Top