In our envvar file, we have SYSCTS.CTS310B.SDFHEXCI coded on the STEPLIB. The CTS310B is the important bit, as we have 3 versions of this, to allow for applying CICS maintenance. The value 'A', 'B' or 'C' is controlled in CICS by a system variable. Is there a way we can do this within the envvar file? Or will we need to have create three sets of directories/files and link to the correct one using a symlink, which we will change as and when required?
Thanks in advance
Pinned topic symbolic substitution within envvar file
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-11-11T16:12:42Z at 2010-11-11T16:12:42Z by shadavamy
RobJones 060000F25C11 Posts
Re: symbolic substitution within envvar file2010-11-11T16:05:16ZThis is the accepted answer. This is the accepted answer.Shadavamy,
Today, STDENV processing in CTGBATCH is entirely literal - there is no provision for variables or substitution. However, there is no reason why STEPLIB can't be coded on the CTGBATCH jobstep where variables can be used, rather than using STDENV.
Provided the JCL has visibility of the variable in question, the desired version of EXCI can be selected. e.g. using a JCL variable "EXCIVER" to append "A","B" or "C" to the SDFHEXCI qualifier:
//REDCTG1 EXEC PGM=CTGBATCH,
// PARM='/&CTGHOME./bin/ctgstart -noinput'
//STEPLIB DD DSN=&CTGHLQ..SCTGLOAD,DISP=SHR
// DD DSN=USER.CICS640.EXCIOPTS,DISP=SHR
// DD DSN=SYSCTS.CTS310&EXCIVER..SDFHEXCI,DISP=SHR
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDENV DD DSN=&CTGENV.,DISP=SHR
//CTGDBG DD DUMMY
Note that the concatenation must specify the user EXCIOPTS (DFHXCO) table BEFORE the SDFHEXCI library, just as it would in STDENV. Also, any STEPLIB environment variable must be removed from the STDENV data, since it is prepended to the value inherited from the JCL.