I am trying to create a job in DI Studio that runs an OS command via the X statement. For troubleshooting purposes, I need access to the return value from the OS, or the output from the execution, or something that would indicate if it is failing and why. For simplicity's sake, suppose I had the following code (in the 'pre-code') tab. x echo $(date) >>RunLog.txt ; and there was a permissions issue with the output file. How would I obtain error information from the 'x' command? Or hopefully anything that would have gone to the console or error device. I realize that control is passing temporarily out of SAS's control, so maybe nothing is possible, but I figured it's worth asking about. Also, the command may need to have quotes around it, but in either case, the job runs successfully (I.E. no error from DI Studio's point of view), but the command was never executed. I'm on Studio V4.902 Thanks in advance.
... View more