When a password is encoded with PROC PWENCODE, the output
string includes a tag that identifies the string as having been encoded.
An example of a tag is
{sas001}
. The
tag indicates the encoding method. SAS servers and
SAS/ACCESS engines
recognize the tag and decode the string before using it. Encoding
a password enables you to write SAS programs without having to specify
a password in plaintext.
Note: PROC PWENCODE passwords
can contain up to a maximum of 512 characters, which include alphanumeric
characters, spaces, and special characters. Data set passwords, however,
must follow SAS naming rules.
For information about
SAS naming rules, see Rules for Most SAS Names in SAS Language Reference: Concepts.
The encoded password
is never written to the SAS log in plain text. Instead, each character
of the password is replaced by an X in the SAS log.