I'm executing UNIX commands using PIPE functionality in SAS. The problem is handling exceptions. If the UNIX server issues an error (stderr) output from the unix command in the pipe, how do I know. The code I inherited just returns nothing when a unix error occurs.
Does SAS have a return code for that similar to SAS/ACCESS for a RDBMS?
after digging through the doc for a while I finally found the automatic macro variable &syscc. That will at least gave an indicator to switch to error handling logic like reading the stderr output like you mentioned.