Topic
  • 2 replies
  • Latest Post - ‏2010-11-11T16:12:42Z by shadavamy
shadavamy
shadavamy
16 Posts

Pinned topic symbolic substitution within envvar file

‏2010-11-11T14:18:33Z |
Hi there
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
Updated on 2010-11-11T16:12:42Z at 2010-11-11T16:12:42Z by shadavamy
  • RobJones
    RobJones
    11 Posts

    Re: symbolic substitution within envvar file

    ‏2010-11-11T16:05:16Z  
    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.

    Cheers,
    Rob.
  • shadavamy
    shadavamy
    16 Posts

    Re: symbolic substitution within envvar file

    ‏2010-11-11T16:12:42Z  
    Oh, excellent, Rob, thanks. My head just wouldn't work today - couldn't think outside the box!!

    Cheers