DATA Step, Macro, Functions and more

Importing SAS file via Citrix Reciever

Reply
Contributor
Posts: 53

Importing SAS file via Citrix Reciever

Hello,

 

I have the below code whereby I'm trying to import multiple .csv file types from a network folder. I access SAS through citrix reciever.

 

DATA TEST;
INFILE '\\CLIENT\O$\EUROMKTG\MARKETING ANALYTICS DEPT\CAMPAIGN REPORTING\TEST\CLICKS.CSV';
PROC IMPORT OUT= WORK.NEWDATA
DATAFILE='\\CLIENT\O$\EUROMKTG\MARKETING ANALYTICS DEPT\CAMPAIGN REPORTING\TEST\CLICKS.CSV';
RUN;

Please can anyone help?

Super User
Super User
Posts: 7,401

Re: Importing SAS file via Citrix Reciever

What is the question?

 

If you lack the correct network path name, speak with your IT.

Super User
Super User
Posts: 6,500

Re: Importing SAS file via Citrix Reciever

You should be able to access files using that notation, IF the SAS process itself is also running on the Citrix server.  

 

If your SAS process is actually running on a Unix server (or even just a different Windows server) then it will know nothing about the mapping of virtural windows drives to folders on the Citrix user's PC.  In that case first upload the file to a location that can be access from the SAS server.

Contributor
Posts: 61

Re: Importing SAS file via Citrix Reciever

You are completely messing up SAS code here regardless of the path issue (possible). You have a PROC inside of a DATA step. They are 2 completely different step type boundaries. Use the PROC code only for now.

PROC IMPORT OUT= WORK.NEWDATA
DATAFILE='\\CLIENT\O$\EUROMKTG\MARKETING ANALYTICS DEPT\CAMPAIGN REPORTING\TEST\CLICKS.CSV';
RUN;

And work on that.
Contributor
Posts: 53

Re: Importing SAS file via Citrix Reciever

I get the following error message...


ERROR: Physical file does not exist, /opt/sasconfig/grd/Lev1/SASApp/O:\EUROMKTG\MARKETING ANALYTICS DEPT\CAMPAIGN REPORTING\4. Q2
REPORTING\TEST\CLICKS.CSV.

Contributor
Posts: 61

Re: Importing SAS file via Citrix Reciever

Notice that you have your physical locations intertwined (O: with backslahes and network path with forward slashes). Unix and PC syntaxes mixed together.
Super User
Super User
Posts: 6,500

Re: Importing SAS file via Citrix Reciever


CamRutherford wrote:

I get the following error message...


ERROR: Physical file does not exist, /opt/sasconfig/grd/Lev1/SASApp/O:\EUROMKTG\MARKETING ANALYTICS DEPT\CAMPAIGN REPORTING\4. Q2
REPORTING\TEST\CLICKS.CSV.


From that error message it is easy to see that your SAS session is running on Unix and not Windows. So any path that uses drive letters will not work.  You either ask your networking to have the file share that you have mapped to the O: drive on your Windows machine mounted somewhere on the Unix servers that SAS is using. Or just copy the file somewhere first and import the copy.

Ask a Question
Discussion stats
  • 6 replies
  • 69 views
  • 0 likes
  • 4 in conversation