BookmarkSubscribeRSS Feed
pparpati11
Calcite | Level 5

Hi,

 

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
dbms=excelcs
outfile="\sharepoint Location\test_cars.xls" replace;
sheet = Data;
server="xx.xx.xx.xx" ;
port=9621;
run;

 

PROC EXPORT DATA=sashelp.cars
OUTTABLE="cars1"
DBMS=ACCESSCS REPLACE ;
DATABASE="\SharePoint location\test_cars.MDB";
SERVER="xx.xx.xx.xx" ;
PORT=9621;
RUN;

 

Thanks,
Praveena

3 REPLIES 3
tomrvincent
Rhodochrosite | Level 12

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.

pparpati11
Calcite | Level 5
I need to make this process automated as a batch job. So E.G. prompting to enter username and password might not work for that purpose.
SASKiwi
PROC Star

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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1666 views
  • 0 likes
  • 3 in conversation