Previous Page | Next Page

SAS Data Set Options

WRITE= Data Set Option

Assigns a WRITE password to a SAS file that prevents users from writing to a file, unless they enter the password.
Valid in: DATA step and PROC steps
Category: Data Set Control

Syntax Description
See Also



Syntax Description


must be a valid SAS name.

See: Rules for Words and Names in the SAS Language in SAS Language Reference: Concepts


The WRITE= option applies to all types of SAS files except catalogs. You can use this option to assign a password to a SAS file or to access a write-protected SAS file.

Note:   A SAS password does not control access to a SAS file beyond the SAS system. You should use the operating system-supplied utilities and file-system security controls in order to control access to SAS files outside of SAS.   [cautionend]

See Also

Data Set Options:

ALTER= Data Set Option

ENCRYPT= Data Set Option

PW= Data Set Option

READ= Data Set Option

Manipulating Passwords in "The DATASETS Procedure" in Base SAS Procedures Guide

Previous Page | Next Page | Top of Page