Help using Base SAS procedures

Reading .gz file

Reply
Super Contributor
Posts: 265

Reading .gz file

please me read .gz file.

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

Please suggest me

PFA

Attachment
Attachment
Contributor
Posts: 62

Re: Reading .gz file

Why don't you convert it ?

Super User
Super User
Posts: 6,500

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,113

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
  • 363 views
  • 0 likes
  • 4 in conversation