Help using Base SAS procedures

Reading .gz file

Super Contributor
Posts: 271

Reading .gz file

please me read .gz file.

as per my knowledge i ahve tried to write correct code.

Please suggest me


Posts: 62

Re: Reading .gz file

Why don't you convert it ?

Super User
Super User
Posts: 8,125

Re: Reading .gz file

Check with the support for your local system.  Note that the zcat command is for files compressed using the compress command (those normally end with .Z) Try using gunzip with the -c option to pipe the results.

Trusted Advisor
Posts: 2,125

Re: Reading .gz file

You appear to have a *nix compressed file (.gz extension is created by the gzip command in *nix) on a Windows system ("\" in file name).

To read this on the PC with a pipe, you will need to install a PC version of gunzip or 7zip and configure the environment variables to find the command.

If this is a one-off, it will be easier to do it interactively and store the uncompressed file.  (Of note, a Windows file compressed using the OS takes about the same space on the disk drive as a .gz or .zip file.)

Ask a Question
Discussion stats
  • 3 replies
  • 4 in conversation