BookmarkSubscribeRSS Feed
tomcmacdonald
Quartz | Level 8

I have a Windows machine.  I use SAS EG which run from a AIX (UNIX) server.  I'm trying to run the following program.

 

 

data _null_;
	infile 'ls -al' pipe;
	input stdout $80.;
	put stdout;
run;

 

 

I receive this in the log:

 

Stderr output:
'ls' is not recognized as an internal or external command,
operable program or batch file.

The "ls" does execute fine on the AIX server when I have an SSH session.  This is a Windows error that's being thrown.  When using the equivalent Windows command it works fine.

 

data _null_;
	infile 'dir' pipe;
	input stdout $80.;
	put stdout;
run;

How do I get the piped filenames to execute on the server and not locally? 

 

2 REPLIES 2
34reqrwe
Quartz | Level 8

that doesnt sound right .

 

Check the connection to ensure you are connecting to the AIX. 

 

Also what happens when you run this 

%put &sysscpl &sysscp;

 

 

 

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 786 views
  • 2 likes
  • 3 in conversation