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?
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;
You're not connected to an AIX based workspace server.
Do a
%put &syshostinfolong. &syshostname.;
to verify where your workspace server runs.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.