Thanks for your information. Your doc is helpful in decompression but it did not address the problem of the password issue. When the file is both compressed and encrypted, that when I have problem.
I have been to SAS support and the guy don't seem to understand my problem and after several back and forth. I finally throw in the towel and this forum is my last resource.
The .zip extension tells me that the file was created on a PC and is in a flavor of WinZip format. I doubt that gzcat can read it at all, let alone unencrypt it.
I am not sure about other Unix system. But I can downlaod a gz file from unix to pc and unzip it with winzip or vice verse. I can even downlaod a .sas7bdat file in unix to pc directly without converting to the transport format and run it without any problem.
You can certainly bring Unix gzip'd file to the PC; both WinZip and 7Zip were designed to read them. You can also use command line processing in winzip and 7zip to read encrypted files on the PC.
However, what I read from your initial post was an interest in using Unix-based SAS and scripts to read a file that had been compressed and encrypted on a PC; that is what I was expressing doubts about.
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.