I want to make the dataset 'FULTONM.MY.FILE' read-only to everyone including me.
I issue:
addsd 'FULTONM.MY.FILE' GEN UACC(NONE)"
I then issue:
listdsd dataset('FULTONM.MY.FILE')
which prints out:
INFORMATION FOR DATASET FULTONM.MY.FILE (G)
LEVEL OWNER UNIVERSAL ACCESS WARNING ERASE
----- -------- ---------------- ------- -----
00 FULTONM NONE NO NO
AUDITING
--------
FAILURES(READ)
NOTIFY
--------
NO USER TO BE NOTIFIED
YOUR ACCESS CREATION GROUP DATASET TYPE
----------- -------------- ------------
ALTER CDEV NON-VSAM
NO INSTALLATION DATA
Now I want to restrict everyone's access (including me: FULTONM) to just READ. I issued:
tsocmd "permit 'FULTONM.MY.FILE' ID(*) ACCESS(READ) GENERIC"
tsocmd "listdsd da('FULTONM.MY.FILE') GENERIC"
But I can still update the file, and I see no change in the LISTDSD output?
If I issue:
tsocmd "listdsd da('FULTONM.MY.FILE') GENERIC all"
I do see:
ID ACCESS
-------- -------
* READ
but I am still able to update the dataset.