Sample 49905: SAS® Drug Development 3.5 - Using PROC PWENCODE to encode passwords
The following example illustrates how to use PROC PWENCODE to encrypt a password contained in an external text file, define the encrypted output as a macro variable, and use the macro value in a WebDAV LIBNAME statement:
filename pwfile 'c:\pass.txt';
proc pwencode in='XXXXXXXX' out=pwfile;
run;
filename pwfile 'c:\pass.txt';
options symbolgen;
data _null_;
      infile pwfile obs=1 length=l;
      input @;
      input @1 line $varying1024. l;
      call symput('password',substr(line,1,l));
run;
libname mydata "https://<Your instance>/webdav/SDD/" webdav user="<Your SDD User Name>" pw="&password";
proc print data=mydata.demo;
run;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
SAS® Drug Development 3.5 - Using PROC PWENCODE to encode passwords
Date Modified: | 2013-09-27 16:50:21 |
Date Created: | 2013-05-09 17:30:54 |
Operating System and Release Information
SAS System | SAS Drug Development - SAS Hosted Edition | Microsoft Windows Server 2003 Datacenter Edition | 3.5 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 3.5 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Standard Edition | 3.5 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 for x64 | 3.5 | | 9.2 TS2M3 | |
Microsoft Windows Server 2008 | 3.5 | | 9.2 TS2M3 | |
Microsoft Windows Server 2008 for x64 | 3.5 | | 9.2 TS2M3 | |
Microsoft Windows XP Professional | 3.5 | | 9.2 TS2M3 | |
Windows 7 Enterprise 32 bit | 3.5 | | 9.2 TS2M3 | |
Windows 7 Enterprise x64 | 3.5 | | 9.2 TS2M3 | |
Windows 7 Home Premium 32 bit | 3.5 | | 9.2 TS2M3 | |
Windows 7 Home Premium x64 | 3.5 | | 9.2 TS2M3 | |
Windows 7 Professional 32 bit | 3.5 | | 9.2 TS2M3 | |
Windows 7 Professional x64 | 3.5 | | 9.2 TS2M3 | |
Windows 7 Ultimate 32 bit | 3.5 | | 9.2 TS2M3 | |
Windows 7 Ultimate x64 | 3.5 | | 9.2 TS2M3 | |
Windows Vista | 3.5 | | 9.2 TS2M3 | |
Windows Vista for x64 | 3.5 | | 9.2 TS2M3 | |
64-bit Enabled Solaris | 3.5 | | 9.2 TS2M3 | |
HP-UX IPF | 3.5 | | 9.2 TS2M3 | |