How can we encrypt the password in the XCOM transfer JCL ?
The member CAI.CBXGJCL(XCOMENCR) contains sample JCL to encrypt the password:
//JOB CARD
//STEP01 EXEC PGM=XCOMENCR
//*
//STEPLIB DD DSN=xcomhlq.CBXGLOAD,DISP=SHR
//SYSIN01 DD DSN=XCOM.TEST.JCL(PASS),DISP=SHR
//SYSOUT01 DD DSN=XCOM.TEST.JCL(PASSENCR),DISP=SHR
where XCOM.TEST.JCL is a PDS with an LRECL of 80
and XCOM.TEST.JCL(PASS) contains
USERID= XXXXXXXX (substitute your USERID for the XXXXXXXX)
PASSWORD=XXXXXXXX (substitute your password for the XXXXXXX)
Run the JCL to put the encrypted password into XCOM.TEST.JCL(PASSENCR)
This is how to use the encrypted password:
Omit the USERID and PASSWORD from the SYSIN01 parameters
and specify for the SYSIN01:
//SYSIN01 DD DSN=XCOM.TEST.JCL(PASSENCR),DISP=SHR
// DD *