I can run:
filename my_com pipe "sleep 60s";
data _null_; file my_com; run;
And the log shows a full 60 second wait:
But if I run:
filename my_com pipe "echo ""hello"" & sleep 60s & echo ""goodbye""";
data _null_; file my_com; run;
The log shows the execution of my 1st and 3rd commands, without the interim 60 second wait. Is there another way to run this so that each command line command runs synchronously (and to completion), while piping the response back to the SAS log?

