BookmarkSubscribeRSS Feed
astha8882000
Obsidian | Level 7
that didn't work either. 😞
r_behata
Barite | Level 11

Are you running the code from SAS EG ? 

 

If you are running from SAS EG there is an option of selecting a Server : SASAPP from a list. Make sure the SASAPP associated to the target server is selected.

 

 

 

sasapp.jpg

astha8882000
Obsidian | Level 7
Took care of that, thank you.
r_behata
Barite | Level 11

Great. If it resolves the issue select the correct response and close the thread.

Tom
Super User Tom
Super User

A couple of things to double check.

1) That you have specified the path exactly right.  Unix paths are case sensitive.  If you do not start the path with / then it will be relative to the current working directory for your SAS process.

2) That the path exists on the machine where SAS is running.  The machine that SAS runs on might not be the machine that you connect to with your FTP tool to look at the files.

3) That you have permission to read (or write if needed) to the file.  The userid that is used to run the SAS code might not be the same as the userid you used in your FTP tool to look at the files.

 

If your SAS session allows you to execute shell commands then you can do some of the testing yourself.  For example this little data step will run an ls and pwd command and dump the output to SAS log.

 

%let unix_path = some unix path location;
data _null_;
  infile 
"ls -ld &unix_path 
; /bin/pwd
" pipe ;
  input;
  put _infile_;
run;

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 19 replies
  • 2132 views
  • 1 like
  • 6 in conversation