My program output error messages because of the chmod 755 in the code. Chmod , changes the permission on the filename foo.txt. Also, the contents that are printed to the terminal screen are redirected to this file . I do not know why foo.txt has no data after the code is generated. The attachment contains contents that are printed to the terminal screen when the code executes.
sas94 -initstmt "proc setinit; endsas; "-nonotes -nonews -stdio &> chmod 755 foo.txt && grep -- "---" foo.txt
The contents that are printed to terminal screen when the code executes are as follows:
1 the SAS System 17:01 Tuesday, September 1, 2015
grace period: 45 days
product expiration dates:
---B colb software 30Nov2015