Sri h Kolusu wrote:

>Here is the JCL that I was talking about.   You pass the the exiting userid 
>that you need to clone as a parm named BASEUSER and the new userid as another 
>parm CLONUSER.  I split the statements into different files , so that you can 
>run them in the sequence you want to.

Amazing! That is a magic wand with all these useful IFTHEN, BUILD and OUTFIL 
statements. (Yes, zSecure or DBSYNC are good for cloning ids, but one more tool 
can't hurt at all!)

One correction, - for Ituriel do Nascimento Neto - if you don't mind please:

>         IFTHEN=(WHEN=(5,4,CH,EQ,C'0270'),
>          BUILD=(1,4,
>                C' ALTUSER ',
>                JP2,C' OMVS(UID(',15,10,C') ',
>                C' HOME(',30,10,C') ',
>                C' PROGRAM(',1054,8,C') )')),

Should rather be this:

         IFTHEN=(WHEN=(5,4,CH,EQ,C'0270'),
          BUILD=(1,4,
                C' ALTUSER ',
                JP2,C' OMVS(AUTOUID ',
                C' HOME(',30,??,C') ',
                C' PROGRAM(',1054,8,C') )')),

AUTOUID should rather be used if you want to have RACF generate UID value 
instead of copying/cloning the UID.
The HOME is not 10 characters long, it is just over 1000 characters long. You 
need to change the '??' to something useful.

See for description of the IRRDBU00 output (watch the wrap):

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.icha300/usr.htm#idg66559

Of course, it is up to you to accept Sri h Kolusu magic wand just as it is 
provided.

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to