| Features: |
IN= argument OUT= option |
filename pwfile
'external-filename';
proc pwencode in='mypass1' out=pwfile; run;
filename pwfile
'external-filename';proc pwencode in='mypass1' out=pwfile; run;
filename pwfile
'external-filename';
options symbolgen;
data _null_;
infile pwfile truncover;
input line :$50.;
call symputx('dbpass',line);
run;
libname x odbc dsn=SQLServer user=testuser password="&dbpass";
filename pwfile
'external-filename';options symbolgen;
data _null_;
infile pwfile truncover;
input line :$50.;
call symputx('dbpass',line);
run;
libname x odbc dsn=SQLServer user=testuser password="&dbpass";
1 filename pwfile 'external-filename';
2 options symbolgen;
3 data _null_;
4 infile pwfile truncover;
5 input line :$50.;
6 call symputx('dbpass',line);
7 run;
NOTE: The infile PWFILE is:
Filename=external-filename
RECFM=V,LRECL=256,File Size (bytes)=4,
Last Modified=12Apr2012:13:23:49,
Create Time=12Apr2012:13:23:39
NOTE: 1 record was read from the infile PWFILE.
The minimum record length was 4.
The maximum record length was 4.
NOTE: DATA statement used (Total process time):
real time 0.57 seconds
cpu time 0.04 seconds
8
9 libname x odbc
SYMBOLGEN: Macro variable DBPASS resolves to {sas002}bXlwYXNzMQ==
9 ! dsn=SQLServer user=testuser password="&dbpass";
NOTE: Libref X was successfully assigned as follows:
Engine: ODBC
Physical Name: SQLServer