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 to run same JOBNAME parallel

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

New User


Joined: 13 Dec 2008
Posts: 38
Location: Mexico City

PostPosted: Wed Dec 01, 2010 1:20 am    Post subject: How to run same JOBNAME parallel
Reply with quote

Hi all,

The application program submits a JCL which has a 5 minutes delay inside it. Problem is, when it submits multiple JCLs they all are having the same JOBNAME and are in a queue.

Is it possible to change the JOBNAME, or run all the JCLs in parallel?

Regards,
zany
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Dec 01, 2010 1:28 am    Post subject:
Reply with quote

I don't understand the question:
If your program generates a job, then the program is responsible for composing the job name.
If the program just SUBMIT an existing job, you can use ISPF Services to edit the job before submission.

O.
Back to top
View user's profile Send private message
zanyzap4u

New User


Joined: 13 Dec 2008
Posts: 38
Location: Mexico City

PostPosted: Wed Dec 01, 2010 1:31 am    Post subject:
Reply with quote

The program writes a message in the SYSLOG.
The message contains the JCL name and PDS from where it has to be executed.
AF Operator picks that message from SYSLOG and triggers the JCL.

Now, the problem is all the JCLs are having the same JOBNAME.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Dec 01, 2010 1:37 am    Post subject:
Reply with quote

Your program can copy the job to a temporary PDS, alter the job name, and add a step to the job to delete the member (and the temporary PDS?).

O.
Back to top
View user's profile Send private message
zanyzap4u

New User


Joined: 13 Dec 2008
Posts: 38
Location: Mexico City

PostPosted: Wed Dec 01, 2010 1:43 am    Post subject:
Reply with quote

ok, let me try that.
Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Dec 01, 2010 2:55 am    Post subject:
Reply with quote

JES requires every executing job to be uniquely named. If you submit 5 jobs with the same name, they are going to run one at a time, period.
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: Wed Dec 01, 2010 3:15 am    Post subject:
Reply with quote

Hello,

When these 5 jobs are submitted, what kind of contention between each other might they cause?

Suggest you consider removing the delay(s) and having the "main" job submit the first of the "multiple jcls" and have each one of these submit the next as their last step.

A far better approach would be to have these properly scheduled via the system scheduling process. . .
Back to top
View user's profile Send private message
zanyzap4u

New User


Joined: 13 Dec 2008
Posts: 38
Location: Mexico City

PostPosted: Wed Dec 01, 2010 3:26 am    Post subject:
Reply with quote

Hi All,

The JOBs are for file transfer, and is triggered everytime any application need to send file to a particular destination.

So, 1st JCL cannot trigger the 2nd JCL, and so on.
Also, this cannot be scheduled.
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: Wed Dec 01, 2010 4:17 am    Post subject:
Reply with quote

Hello,

Quote:
So, 1st JCL cannot trigger the 2nd JCL, and so on.
Also, this cannot be scheduled.
Wrong and Wrong. . .

I've done exactly this (one job submitting the next) on systems that had no scheduling software.

I've also done this (proper scheduling) by working with scheduling admin people.

The only reason "it can't be done" on your system is because someone does not want to. . .
Back to top
View user's profile Send private message
zanyzap4u

New User


Joined: 13 Dec 2008
Posts: 38
Location: Mexico City

PostPosted: Wed Dec 01, 2010 4:37 am    Post subject:
Reply with quote

Sir,

I completely agree with you. It can be done.
It can be done both the ways, from schedule or from 1st JCL submitting the next.

But, the problem is the file transfer JCLs are asyncronous.
They might get triggered from any application, any time, with any FTP parameters. Its like huge number of programs trying to do file transfer at the same time.
So, please suggest how can i run all the file transfer JCLs simultaneously (with same JOBNAME, or by changing it somehow).


Quote:
Your program can copy the job to a temporary PDS, alter the job name, and add a step to the job to delete the member (and the temporary PDS?).


I am trying to do this, but am not sure if this is a good solution.
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: Wed Dec 01, 2010 8:58 am    Post subject:
Reply with quote

Hello,

Quote:
The application program submits a JCL which has a 5 minutes delay inside it. Problem is, when it submits multiple JCLs they all are having the same JOBNAME and are in a queue.
Quote:
But, the problem is the file transfer JCLs are asyncronous.
Possibly there is something i misunderstand, but these do not sound asyncronous icon_confused.gif

Quote:
They might get triggered from any application, any time, with any FTP parameters.
Processes like this often use some kind of queueing mechanism to enter the requests and then work the requests serially. . .

One obstacle to us providing the most useful help is that the "requirement" hasn't been completely/clearly defined.
Back to top
View user's profile Send private message
zanyzap4u

New User


Joined: 13 Dec 2008
Posts: 38
Location: Mexico City

PostPosted: Thu Dec 02, 2010 12:49 am    Post subject:
Reply with quote

Let me give an example.
There are 2 programs P1 and P2. At some point T1, both triggers a file transfer JCL (the JCL name that is triggered is same for both).
Quote:
The program writes a message in the SYSLOG. The message contains the JCL name and PDS from where it has to be executed. AF Operator picks that message from SYSLOG and triggers the JCL.


Now there are 2 JCLs running with the same JOBNAME, but different JOBID.
Since the JOBNAME is same for both of them, one will start and another will wait for the 1st one to finish.

My question is, how can I run both of them simultaneously.
Because, there can be not just 2 program, there can be 200 programs triggering file transfer at the same time.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Thu Dec 02, 2010 1:28 am    Post subject:
Reply with quote

zanyzap4u wrote:
Now there are 2 JCLs running with the same JOBNAME, but different JOBID.
Since the JOBNAME is same for both of them, one will start and another will wait for the 1st one to finish.

My question is, how can I run both of them simultaneously.
Because, there can be not just 2 program, there can be 200 programs triggering file transfer at the same time.

You can't. Cannot. No way, Zaný. As ofer71 suggests, the only feasible solution is to have the program dynamically compose the job name.
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: Thu Dec 02, 2010 1:38 am    Post subject:
Reply with quote

Hello,

To me it sounds like this is getting or has gotten out of control. . .

Suggest you talk with the people responsible for the stable operation of the environment and ask if several hundred unique jobnames, appearing at any time, will be acceptable for them to support.

Some of the places i've supported run several thousand transmissions per day and do not have this sort of convoluted job management issue.

Keep in mind that there is probably no good reason that every file has to be tramsmitted the very moment it is created.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Dec 02, 2010 2:33 am    Post subject:
Reply with quote

zanyzap4u, it sounds like you've decided upon your solution and aren't listening to what we're saying. Since many sites handle file transfers with no problems, why is your site so unique?
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 186
Location: chennai

PostPosted: Thu Dec 02, 2010 10:28 am    Post subject: Reply to: How to run same JOBNAME parallel
Reply with quote

Hi

As Dick scherrer advised
Quote:
Suggest you talk with the people responsible for the stable operation of the environment and ask if several hundred unique jobnames, appearing at any time, will be acceptable for them to support.


You can talk to your admin people with this
Quote:
DUPL_JOB={DELAY|NODELAY}
Specifies whether or not JES2 is allowed to concurrently execute batch jobs with the same name in the same MAS.
DELAY Do not allow JES2 to execute batch jobs with the same name in the same MAS at the same time.
NODELAY Allow JES2 to execute batch jobs with the same name in the same MAS to execute at the same time. Scope: MAS-Wide.


This is a JES parameter.

Regards
Raghu
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Dec 07, 2010 5:08 pm    Post subject:
Reply with quote

One way is for the jobs to be executed as started tasks which can have the same names. So if you have a procedure with symbolics that you can populate with relevant values passed when issuing the start command you may be able to achieve what you want. You may have some battles getting the required security profiles set up though!
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 Assambly code to get the jobname ? jackzhang75 PL/I & Assembler 16 Tue Jul 07, 2015 11:37 pm
No new posts Regarding 'TSO OUTPUT jobname(jobid)' Arunkumar Chandrasekaran TSO/ISPF 17 Thu Oct 30, 2014 3:53 pm
No new posts Query on Parallel processing of Store... rexx77 DB2 1 Thu Aug 14, 2014 12:41 pm
No new posts Address TSO STATUS JOBNAME - Not gett... kumjara CLIST & REXX 4 Thu Feb 27, 2014 12:46 pm
No new posts CA7 - Case where Jobs must NOT run in... thisak CA Products 4 Fri Oct 25, 2013 2:57 pm


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