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
 

 

Submit Job in one region runs another Job in Another Region

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

Active User


Joined: 17 Mar 2006
Posts: 171
Location: Bangalore

PostPosted: Wed Sep 19, 2007 1:02 pm    Post subject: Submit Job in one region runs another Job in Another Region
Reply with quote

Hi,

I have 2 region Prod and Test, Prod is having scheduler where test is not. So how can I run the Job in prod after completion of prod job submits another Job in Test region.

Thanks
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 Sep 19, 2007 1:08 pm    Post subject:
Reply with quote

Hello,

Please clarify this
Quote:
So how can I run the Job in prod after completion of prod job submits another Job in Test region.
I cannot follow what you are asking.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Sep 19, 2007 1:08 pm    Post subject: Reply to: Submit Job in one region runs another Job in Anoth
Reply with quote

You'll need a /* ROUTE XEQ statement.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 1:10 pm    Post subject:
Reply with quote

Shrivatsa,
Quote:
So how can I run the Job in prod after completion of prod job submits another Job in Test region.

I belive you wanted to execute a job in test region basing on prod job completion.

If this is what you want, schedule test job after prod job in production region itself. But dont forget to include jes2 /*XEQ statement.
Back to top
View user's profile Send private message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 171
Location: Bangalore

PostPosted: Wed Sep 19, 2007 1:17 pm    Post subject: Reply to: Submit Job in one region runs another Job in Anoth
Reply with quote

I am including the below steps after the Prod Job

//INTRDR EXEC PGM=IEBGENER
/*ROUTE XEQ SRVDC
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXX.XXXX.XXXX(ABCDE),DISP=SHR
//SYSUT2 DD SYSOUT=(,INTRDR)
/*

But its saying that XXXX.XXXX.XXXX(ABCDE) is not found

Please suggest
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Sep 19, 2007 1:28 pm    Post subject: Reply to: Submit Job in one region runs another Job in Anoth
Reply with quote

Quote:

But its saying that XXXX.XXXX.XXXX(ABCDE) is not found
Please suggest


There is little that we can do for You...
review Your dataset and member naming

regards

e.s
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 2:14 pm    Post subject:
Reply with quote

Shrivatsa,

Quote:
But its saying that XXXX.XXXX.XXXX(ABCDE) is not found

Please ensure that this dsn exists in the test region (i.e., where the job runs).
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Sep 19, 2007 6:13 pm    Post subject:
Reply with quote

dick scherrer wrote:
Please clarify this
Quote:
So how can I run the Job in prod after completion of prod job submits another Job in Test region.
I cannot follow what you are asking.

Hi Dick,

I think, OP wants to ask "How can He initiate some Job in Test Region after completion of some Job in production. "

Not sure though, OP has to approve it. icon_smile.gif
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 Sep 19, 2007 7:47 pm    Post subject:
Reply with quote

Hello,

Quote:
I am including the below steps after the Prod Job

//INTRDR EXEC PGM=IEBGENER
/*ROUTE XEQ SRVDC
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXX.XXXX.XXXX(ABCDE),DISP=SHR
//SYSUT2 DD SYSOUT=(,INTRDR)
/*

But its saying that XXXX.XXXX.XXXX(ABCDE) is not found
Keep in mind that this step will run in the production region - it is "sending" the other job thru the internal reader on the production region.

Quote:
Shrivatsa,
Quote:
But its saying that XXXX.XXXX.XXXX(ABCDE) is not found

Please ensure that this dsn exists in the test region (i.e., where the job runs).


This is incorrect - the dataset must exist in the prod region.
Back to top
View user's profile Send private message
tchen40

New User


Joined: 12 Sep 2007
Posts: 30
Location: Los Angeles, Ca

PostPosted: Wed Sep 19, 2007 11:18 pm    Post subject:
Reply with quote

Make sure that the two JES subsystems talk to each other. Either through MAS or an NJE connection.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 20, 2007 11:43 am    Post subject:
Reply with quote

Shrivatsa,

Quote:

I run the Job in prod after completion of prod job submits another Job in Test region.


I think you may need to speak to the scheduling team regarding this. Because any project will already have a schedule in place and if you are trying run the job on only one day, then you may need to set that job as special. if you are planning to run on particular day , you may need to move the code to production.

Many projects will not allow a particular job to be triggered and executed in production from TEST. That is why we maintain two regions.

Also we may not have access to change these triggering schedules for production job.

Cheers,
Diwakar

-------------------------------------
Nobody is Perfect. I am Nobody
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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm


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