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')
..
DELUSER ZZZZ
//ENDIF
//IF (DEFUSER='YES')
..
ADDUSER ZZZZ ..
//ENDIF
...
So the first time, you set DELUSER=NO, DEFUSER=YES... and run it. the
second time
you set DELUSER=YES, DEFUSER=YES, and to give up,and clean up you set
DELUSER=YES, DEFUSER=NO.
What is the best way of doing this?
The JCL 'IF' statement uses RC, or ABEND, and not on set variables.
Ive set up a small program "COND",PARM='A = &ABC' which sets RC = 0 if they
are the same,
so now I can use
//DELUSER EXEC PGM=COND,PARM='DELUSER = YES'
//DEFUSER EXEC PGM=COND,PARM='DEFUSER = YES'
//DELETE EXEC PGM=... ,COND=(0,NE,DELUSER)
//DEFINE EXEC PGM=...,COND=(0,NE,DEFUSER)
Is there a better way of doing this? I would prefer one job, because I
want to do global edit of myuserid to ZZZZZ etc
In the past Ive put the deletes inline with the define, but the output
looks messy, because the first time delete fails.
Colin
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN