The following JCL example shows add, update, and delete of an AGPSWD through a CAICCI terminal interface. You can use a batch terminal (BTI) or a TCP/IP terminal by adjusting the JCL execute and DD statements accordingly.
This JCL adds a password AbCdEfGhIjK for a user ID USERTEST. The JCL then updates the password to be TuVwXyZ for the USERTEST user ID. Finally it deletes the USERTEST. Remember that the user ID and passwords are case-sensitive!
//STEP1 EXEC PGM=CAL2X2WB,PARM='CCISENF,CA77' //STEPLIB DD DISP=SHR,DSN=cai.CA7.CAL2LOAD //SYSPRINT DD SYSOUT=* //ERRORS DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSIN DD * /LOGON user,pswd DB AGPSWD ADD,AG1=USERTEST,AGNEWPW=AbCdEfGhIjK,AGVERPW=AbCdEfGhIjK AGPSWD UPDATE,AG1=USERTEST,AGOLDPW=AbCdEfGhIjK, AGNEWPW=TuVwXyZ,AGVERPW=TuVwXyZ AGPSWD DELETE,AG1=USERTEST /LOGOFF /*
The CA WA CA 7 Edition responses for this test appear as (only a subset of the commands is shown):
10235 152036 DB
SDM0-00 ENTER CA-7 TRANSACTION
10235 152036 AGPSWD
SMX3-00 Enter input data
10235 152036 ADD,AG1=USERTEST,AGNEWPW=AbCdEfGhIjK,AGVERPW=AbCdEfGhIjK
SMX3-01 Password added successfully
10235 152036 AGPSWD
SMX3-00 Enter input data
10235 152036 UPDATE,AG1=USERTEST,AGOLDPW=AbCdEfGhIjK,
AGNEWPW=TuVwXyZ,AGVERPW=TuVwXyZ
SMX3-04 Password updated successfully
10235 152036 AGPSWD
SMX3-00 Enter input data
10235 152036 DELETE,AG1=USERTEST
SMX3-02 Password deleted successfully
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|