BookmarkSubscribeRSS Feed
nsr2013
Calcite | Level 5

I want to use proc export to load the outputfile csv from unix server(SAS installed) into my local machine(windows).

if i am using unix server path, its loading into unix server path correctly.

/* Write to .CSV */

proc export data=test_dates_gmt

    outfile="/root/home/sas"

    dbms=csv replace;

run;

How to download unix server processing file into local machine path by using proc export?

4 REPLIES 4
Reeza
Super User

It's not clear what you're looking to do.

nsr2013 wrote:

How to download unix server processing file into local machine path by using proc export?

Proc Export exports a SAS data set to a different format. Proc Upload/Download move files from the server to local but it can be done in other ways as well, depending on your system set up.

You need to clarify your question.

Ksharp
Super User

You can't do that by proc export.  But if you are using EG , that would be easy ,

Post it at

SAS Enterprise Guide

someone will give you answer .

nsr2013
Calcite | Level 5

Hi,

To be more specific, i am using below code in stp to download the final output in csv. SAS is running in Unix server, Client is in Windows. I want to download the final CSV file into local machine where SAS client is located.

I am getting below error. Any idea?

83        + PROC EXPORT DATA=TEST_REPORT LABEL

84        +  OUTFILE= "c:/user"

85        +  DBMS=csv REPLACE;

85       !+                    DELIMITER=',';

86        +  RUN;

NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to WORK.PARMS.PARMS.SLIST.

ERROR: Physical file does not exist, /opt/app/sas/config/Lev1/SASApp/C:/user.

Reeza
Super User

If your data is on the server you need to either move the data to your local machine first and then export or create the file on the server and then download the file.

How exactly you do that is dependent on your setup.

Do you have both a local and server version of SAS?

Otherwise create it on the server and use an FTP program to download the file.

You can also look into PROC DOWNLOAD

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 1960 views
  • 0 likes
  • 3 in conversation