The PASSWORD parameter specifies a password to be used for accessing password-protected datasets in a job. It provides a security mechanism for protecting sensitive data from unauthorized access. This parameter is primarily used with RACF or other security systems in mainframe environments.
1//jobname JOB parameters,PASSWORD=password
12//ddname DD DSN=dataset-name,DISP=status, // PASSWORD=password
Security Note:
While the PASSWORD parameter is still supported for backward compatibility, modern z/OS environments typically use security products like RACF, ACF2, or Top Secret for access control. These provide more robust security mechanisms than JCL passwords.
When specified on a JOB statement, the PASSWORD parameter typically works with the USER parameter to authenticate the user ID under which the job runs.
12//PAYROLL JOB (ACCT#),'JOHN DOE', // USER=JSMITH,PASSWORD=SECRET42
This job will run under the user ID JSMITH with the password SECRET42 for authentication.
When specified on a DD statement, the PASSWORD parameter provides access to password-protected datasets.
123//STEP1 EXEC PGM=PAYROLL //PAYFILE DD DSN=PAYROLL.MASTER,DISP=OLD, // PASSWORD=PAY1234
This DD statement accesses the password-protected dataset PAYROLL.MASTER using the password PAY1234.
Using the PASSWORD parameter in JCL has several security drawbacks:
Due to these security concerns, modern z/OS environments typically use:
Alternative | Benefits |
---|---|
RACF/ACF2/Top Secret |
|
Passtickets |
|
Surrogate authority |
|
12//MYJOB JOB (ACCT),'PROGRAMMER', // USER=USERID,PASSWORD=USERPW
123456//STEP1 EXEC PGM=IEBGENER //SYSUT1 DD DSN=SECURE.DATA.SET,DISP=SHR, // PASSWORD=DATASEC1 //SYSUT2 DD SYSOUT=A //SYSIN DD DUMMY //SYSPRINT DD SYSOUT=A
12345//STEP1 EXEC PGM=IEFBR14 //NEWDS DD DSN=NEW.SECURE.DATA,DISP=(NEW,CATLG), // SPACE=(TRK,(10,5)),UNIT=SYSDA, // DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000), // PASSWORD=NEWPW
This creates a new password-protected dataset with the password NEWPW.
The PASSWORD parameter is maintained primarily for backward compatibility with older applications and JCL. In modern z/OS environments: