DELDSD
Deletes a dataset rule. The datasets stay.
Also written DD
Why it matters. Old rules pile up. DELDSD clears away one you no longer need.
Syntax
{DELDSD | DD} ('profile-name' ...) [GENERIC]- 'profile-name'
- The exact name of the profile. A dataset the profile covers is not a profile name.
- (name1 name2)
- Several profiles in brackets.
- GENERIC
- Treat the name as generic even if it has no * or %.
- NOSET
- For a discrete profile: leave the RACF indicator on the dataset on.
Try it DELDSD
- 1
The rule ZBANK.DEV.TEMP.** already exists, and you don't need it any more. Delete it.
DELDSD 'ZBANK.DEV.TEMP.**' - 2
Check that the rule is gone.
LISTDSD DA('ZBANK.DEV.TEMP.**') - 3
Delete it a second time, to see what RACF says.
DELDSD 'ZBANK.DEV.TEMP.**'
Remember
- DELDSD deletes the rule, not the datasets.
- Give the profile's exact name, with the **.
- Check with LISTDSD afterwards.
The usual mistake
DELDSD 'ZBANK.DEV.TEMP.DATA'
That is a dataset the rule covers, not the rule. No profile has that exact name, so RACF says it is not defined.
DELDSD 'ZBANK.DEV.TEMP.**'
On real z/OS
MF/OS finds a profile by its exact name. GENERIC and NOSET are accepted but have no effect. On a real system, a generic name with no * or % needs GENERIC or RACF answers ICH09020I, and a deleted generic profile stops protecting only after a refresh; MF/OS applies it at once.
Where can I practise DELDSD?
Right here, at ZedBank. You take a junior job at a simulated bank and use DELDSD in real work, with Zed beside you. There's nothing to install.
Start at ZedBankRelated
- RACFThe security manager for z/OS, which decides who may sign on, read a dataset, or run a transaction.
- Dataset profileA security rule describing which datasets it covers and who is allowed to do what to them.
- DatasetWhat a mainframe calls a file: a named collection of records with a defined structure, rather than a loose stream of bytes.
- High-level qualifierThe first part of a dataset name, which usually identifies the owner and drives how security and storage rules apply.