@Ram_Bravos wrote:
Ran Proc Options and i could see 'XCMD' in the log.
Tried (FILENAME LGCY_GZ ZIP "/product/sas-shared/...../file.txt.gz" lrecl=32767;) getting the error below.
ERROR: The file "/product/sas-shared/......./TWC_LEGACY1.TXT.gz" exists and is not a zip file. The output file must be a zip file.
So you are forced to use the external gzip.
Do this:
filename oscmd pipe "gzip -d /product/..../Infile.TXT.gz 2>&1";
data _null_;
infile oscmd;
input;
put _infile_;
run;
filename oscmd clear;
You will see all messages created by the system call in your SAS log.
... View more