1. I want to know is it possible to password protect a PDS or a dataset ?
Password protection for dataset is rarely used in mainfrmes and it is not advisable.Also it may not be supported or will be prohibited in some shops.
Also if you are working in a client's mainframe my advice is do not go for it. But for your information there is TSO command available.
TSO PROTECT or give TSO HELP to get the complete list.
2. I have a PDS containing some vital jobs, i wish to restrict its access only to some of the TSO ids. Is it possible to do so?
The utility control statements are discussed below:
? LIST specifies that the access counter, protection mode, and user data from the entry for password ABLE
are listed. Listing the entry permits the content of the access counter to be recorded before the counter is
reset to zero by the REPLACE statement.
? REPLACE specifies that the protection mode of password ABLE is to be changed to allow both read and
write access and that the protection status of the data set is changed to write-only protection. The VOL
parameter is required because the protection status of the data set is changed and the data set, in this
example, is not cataloged. Because this is a control password, the CPASWORD parameter is not required.