Help using Base SAS procedures

X command (UNIX) and SAS Log

Reply
Contributor
Posts: 40

X command (UNIX) and SAS Log

Is there a way to have the X command results redirect to the SAS log?

I'm not an experienced Unix user - so if there is something else I can then your suggestion is welcome.
Valued Guide
Posts: 632

Re: X command (UNIX) and SAS Log

When you sas 'results' that could mean a lot of different things. Especially since a great deal can be done with the X statement. The automatic macro variable &SYSRC returns the success or failure of the X statement.
Super Contributor
Posts: 394

Re: X command (UNIX) and SAS Log

Instead of the X statement, use a pipe. See Reading from and Writing to UNIX Commands (PIPE).
Ask a Question
Discussion stats
  • 2 replies
  • 412 views
  • 0 likes
  • 3 in conversation