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

Submit Job in one region runs another Job in Another Region


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shrivatsa
Warnings : 1

Active User


Joined: 17 Mar 2006
Posts: 174
Location: Bangalore

PostPosted: Wed Sep 19, 2007 1:02 pm
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 19, 2007 1:08 pm
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

Global Moderator


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

PostPosted: Wed Sep 19, 2007 1:08 pm
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: 1436
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 1:10 pm
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: 174
Location: Bangalore

PostPosted: Wed Sep 19, 2007 1:17 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 19, 2007 1:28 pm
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: 1436
Location: Bangalore,India

PostPosted: Wed Sep 19, 2007 2:14 pm
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

Superior Member


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

PostPosted: Wed Sep 19, 2007 6:13 pm
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 19, 2007 7:47 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts CICS region is terminated abnormally ... CICS 2
No new posts How to submit multiple jobs with parm... JCL & VSAM 3
Search our Forums:

Back to Top