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:
I'm curious if there were something similar one could use in a batch program...
Code:
EXEC CICS ASSIGN
APPLID(APPLID-WS)
USERID(USER-ID-WS)
END-EXEC.