Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Identify the region in which a batch cobol program runs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
dhanya unnikrishnan

New User


Joined: 21 May 2008
Posts: 1
Location: USA

PostPosted: Thu May 22, 2008 1:49 am    Post subject: Identify the region in which a batch cobol program runs
Reply with quote

Hi,

I have a code which will post JCLs.I need to put a check in program to identify the region in which it runs test or production.

Is there any way to do that.

Thanks,
Dhanya
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu May 22, 2008 2:03 am    Post subject:
Reply with quote

Hi Dhanya,

Not sure what "post" means.

Alittle more detail might help too. Where does the JCL reside? Does it contain procs? Don't your shop have a prod environment with JCL/source/load libs dedicated? The same w/test.

Or am I misunderstanding your ques?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Thu May 22, 2008 2:04 am    Post subject: Reply to: Identify the region in which a batch cobol program
Reply with quote

even if I strongly disagree on the approach
- the application development should not be impacted by system setup
- if the system setup changes, the program must reflect those changes
- the program must keep track of all the possible system combinations

here is a pointer to a code snippet that should be
evaluated and approved by Your support before being used

http://gsf-soft.com/Freeware/COB2SYS.shtml

the best approach would be to pass a parameter
any scheduler can fill the info at submit time,
screening the application from system setup details
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu May 22, 2008 2:09 am    Post subject: Re: Identify the region in which a batch cobol program runs
Reply with quote

dhanya unnikrishnan wrote:
Hi,

I have a code which will post JCLs.I need to put a check in program to identify the region in which it runs test or production.

Is there any way to do that.

Thanks,
Dhanya
Set a working storage copy member in test and production with the same name but different values.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us