Question & Answer
Question
Cause
At the system level, encryption is automatically enabled for Extended format (VSAM and non-VSAM) and non-extended format ZFS when a key label is assigned.
For basic, large format and PDSE data sets, these RACF profiles must be defined for encryption to be enabled: STGADMIN.SMS.ALLOW.DATASET.SEQ.ENCRYPT STGADMIN.SMS.ALLOW.PDSE.ENCRYPT
When these RACF profiles STGADMIN.SMS.ALLOW.DATASET.SEQ.ENCRYPT (basic and large format) or STGADMIN.SMS.ALLOW.PDSE.ENCRYPT (for PDSE) exist, that indicates encryption is enabled for data set types. The authority (UACC or access list) is NOT verified. SMS is simply verifying the existence of these profile names.
For all data set types, SMS checks these RACF profiles to decide if encryption is allowed or not when a key label is specified: STGADMIN.SMS.ALLOW.DATASET.ENCRYPT STGADMIN.SMS.FAIL.INVALID.DSNTYPE.ENC
In addition, the following parameters can be specified in the DFP Segment of RACF DATASET profile to determine encryption eligibility at data set level:
ENCRYPTTYPES: Specifies the data set types, basic and large format sequential and PDSE that are eligible for data set encryption, or are excluded from data set encryption, for data sets covered by this profile. Each data set type has three possible prefixes:
ALL: All the supported data set types (PDSE, and SEQ) covered by this profile are eligible for data set encryption. INxxx : Include the type for encryption. EXxxx : Exclude the type from encryption. NOxxx : Removes the IN and EX settings for that type. This is the default behavior. Where xxx = SEQ or PDSE. For example, ENCRYPTTYPES(INSEQ).
NOENCRYPTTYPES: Removes all settings. SMS determines whether new data sets covered by this profile is eligible for encryption.
Answer
When the data set is Extended Format (VSAM and Non-VSAM) and Non-Extended Format ZFS:
- When a data set key label is specified on the RACF DFP Segment, then SMS attempts to create an encrypted data set and message IGD17150I is issued if successful.
- When a data set key label is specified from other sources: JCL, Dynamic Allocation, IDCAMS DEFINE, or Data Class
and if STGADMIN.SMS.ALLOW.DATASET.ENCRYPT or a generic profile (such as STGADMIN.SMS.**) is defined that would cover STGADMIN.SMS.ALLOW.DATASET.ENCRYPT *AND* the UACC is READ or the user has at least READ access to this resource, then SMS attempts to create an encrypted data set and message IGD17150I is issued if successful. - Otherwise, the data set define fails. Message IGD17155I is issued.
When the data set is PDSE, basic or large format:
SMS checks whether these data set types are eligible for encryption at data set level before checking the same thing at system level.
If INSEQ (basic and large format) or INPDSE (PDSE) is specified in the RACF DFP segment, these data set types of this data set profile are eligible for encryption:
If EXSEQ (basic and large format) or EXPDSE (PDSE) is specified in the RACF DFP segment, these data set types of this data set profile are not eligible for encryption:
If NOSEQ (basic and large format) or NOPDSE (PDSE) or NOENCRYPTTYPES or either are omitted from the DFP segment, SMS checks at system level to determine whether these data set types are eligible for encryption:
Message Descriptions:
Was this topic helpful?
Document Information
Modified date:
03 October 2025
UID
ibm17246726