PWENCODE Procedure

Example 3: Saving an Encoded Password to the Paste Buffer

Features:

IN= argument

OUT= option

Other features:

FILENAME statement with CLIPBRD access method

DETAILS

This example saves an encoded password to the paste buffer. You can then paste the encoded password into another SAS program or into the password field of an authentication dialog box.

Program

filename clip clipbrd;
proc pwencode in='my password' out=clip;
run;

Program Description

Declare a fileref with the CLIPBRD access method.
filename clip clipbrd;
Encode the password and save it to the paste buffer. The OUT= option saves the encoded password to the fileref that was declared in the previous statement.
proc pwencode in='my password' out=clip;
run;

Log

Note that each character of the password is replaced by an X in the SAS log.

24
25   filename clip clipbrd;
26     proc pwencode in=XXXXXXXXXXXXX out=clip;
27   run;

NOTE: PROCEDURE PWENCODE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds