ALTER= Data Set Option: z/OS

Specifies a password for a SAS file that prevents users from replacing or deleting the file, but permits read and write access.
Valid in: DATA step, PROC steps
Category: Data Set Control
z/OS specifics: All
See: ALTER= Data Set Option in SAS Data Set Options: Reference

Syntax

ALTER=alter-password

Required Argument

alter-password
must be a valid SAS name. For more information, see “Rules for Words and Names in the SAS Language” in the SAS Language Reference: Concepts.

Details

About the Alter= Data Set Option

The ALTER= option applies to all types of SAS files except catalogs. You can use this option to assign an alter-password to a SAS file or to access a read-protected, write-protected, or alter-protected SAS file. When replacing a SAS data set that is alter protected, the new file inherits the alter password. To change the alter password for the new file, use the MODIFY statement in the DATASETS procedure.
The ALTER password is not honored for UFS libraries processed via the TAPE engine. Moreover, the ALTER password cannot be used to prevent members of a sequential access bound library from being deleted if those members follow a member that is being replaced. For more information, see General Usage Notes.
Note: A SAS password does not control access to a SAS file or a SAS library beyond SAS. You should use the operating environment-supplied utilities and file-system security controls in order to control access to SAS files outside of SAS.

See Also

File Protection in SAS Language Reference: Concepts
Manipulating Passwords in Base SAS Procedures Guide
Data Set Options
ENCRYPT= Data Set Option in SAS Data Set Options: Reference
PW= Data Set Option in SAS Data Set Options: Reference
READ= Data Set Option in SAS Data Set Options: Reference
WRITE= Data Set Option in SAS Data Set Options: Reference