02-20-2018 09:29 PM
We have Base SAS on a UNIX server and I am trying to run the code below fro SAS EG. It works fine with a local path on the PC for the outfile where PC files server is Installed. The below is also running fine if I also specify username and password, but I don't want to hard code my credentials in the code. Wanted to ask if there are any workarounds . I need to export to both excel and access from SAS EG.
PROC EXPORT data=sashelp.cars
outfile="\sharepoint Location\test_cars.xls" replace;
sheet = Data;
PROC EXPORT DATA=sashelp.cars
DBMS=ACCESSCS REPLACE ;
02-21-2018 01:03 PM - edited 02-21-2018 01:04 PM
You can have EG prompt you for the userid and password using masked single line text type so that they don't show up in the log.
02-21-2018 05:18 PM
02-22-2018 02:18 AM
You could use PROC PWENCODE to encode the passwords. While that stops casual users from deciphering the original password, it doesn't stop users from copying the password to use in their own processes.