If security is implemented
on your DataFlux Data Management Server, include user names and passwords
in the procedures and function calls that access that server. Specify
the passwords directly, in plain text, or as encoded passwords. SAS
recognizes encoded passwords and decodes them before it sends the
passwords to the DataFlux Data Management Server.
This example shows how
to encode a password and use that password in a call to the DMSRVDATASVC
procedure:
/* Encode password in file. */
filename pwfile 'c:\dataEntry01Pwfile';
proc pwencode in='Oe3s2m5' out=pwfile;
run;
/* Load encoded password into macro variable. */
data _null_;
infile pwfile obs=1 length=l;
input @;
input @1 line $varying1024. l;
call symput ('dbpass', substr(line,1,l));
run;
/* Run service on secure DataFlux Data Management Server */
proc dmsrvdatasvc
service='cleanseCorpName' host='entryServer1'
userid='DataEntry1' password="&dbpass"
data=corpName out=corpNameClean;
run;
PROC PWENCODE concepts,
syntax, and examples are documented in the
Base SAS Procedures Guide.