Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically determining your environment in a mainframe batch program 2

Status
Not open for further replies.

weberm

Programmer
Dec 23, 2002
240
US
I am running IBM COBOL2 from a CICS/MVS mainframe environment. In CICS I can dynmically determine my environment (TEST v PROD) by invoking this function:
Code:
EXEC CICS ASSIGN
APPLID(APPLID-WS)
USERID(USER-ID-WS)
END-EXEC.
I'm curious if there were something similar one could use in a batch program...

 
weberm,

Batch regions carry the name of their job. Do the job names contain an identifier that indicates production of test?

Dave
 
dneufarth said:
Batch regions carry the name of their job. Do the job names contain an identifier that indicates production of test?
We use the same name for test and production versions, but we use different PROC parameter values to indicate different instances, as it were. This is one for production, for example:
Code:
//MRWFIRXX JOB (46046,00000,,25),'MRW',CLASS=C  
//STEP01   EXEC PROC=COBIPROD,PROG=FIRAQXX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top