PWENCODE Procedure

Example 3: Saving an Encoded Password to the Paste Buffer


IN= argument

OUT= option

Other features:

FILENAME statement with CLIPBRD access method


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.


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

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;


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

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