On Wed, 10 Nov 2021 12:29:37 +0000, Colin Paice wrote:
>I'm looking at ways of doing customisation, and want an easy way to
>run/omit steps.
>For example
>ADDUSER ZZZZZZZ NAME('COLINS') NOPASSWORD -
> OMVS(AUTOUID ASSIZE(256000000) THREADS(512))
>
>being a good person, I also want to provide a delete step
>DELUSER ZZZZZ.
>My fantasy JCL looks like
>// SET DELUSER='NO'
>// SET DEFUSER=YES
>// SET...
>
>//IF (DELUSER='YES')
>..
Be careful. The JCL Ref. states some peculiarly harsh syntax rules, then:
Relational-expression keywords
The following keywords are the only keywords supported by IBM and
recommended for use in relational- expressions. Any other keywords,
even if accepted by the system, are not intended or supported keywords.
It's hard to avoid constructs such as yours that "are not intended
or supported" but appear quite intuitive and are not flagged by
the JCL reader/converter.
Do prevalent JCL checkers reliably flag such unsupported constructs?
Alternatives might be:
o Use of SET symbols in other constructs such as COND=,
or in DD DATA,SYMBOLS=JCLONLY.
o File tailoring.
Since prion to the availability of DD DATA,SYMBOLS=... I have
kept JCL as here-documents in POSIX shell scripts where I
could employ symbol substitution and process substitution simply
because POSIX shells are what I know better.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN