BookmarkSubscribeRSS Feed
arunrami
Pyrite | Level 9
Can anyone explain how to read zipped dataset with the help of SAS and as well as zip command in sas /window platform?
4 REPLIES 4
andreas_lds
Jade | Level 19

Please have look at the documentation of the filename statement and/or use the search-function. Dealing with zip-files has already been discussed in full-detail.

ChrisNZ
Tourmaline | Level 20

Is it an actual SAS data set (extension sas7bdat) in the zip file? 

Otherwise, as mentioned, this question has been answered many times. Please expose a specific problem if you have one.

arunrami
Pyrite | Level 9

Yes , it is a zipped sas dataset 

ChrisNZ
Tourmaline | Level 20

I can't think of a way to use a sas data set without first extracting it from the zip file. Which you can do using SAS of course:

filename IN zip 'C:\temp\data.zip' member='mydata.sas7bdat' recfm=n;
filename OUT "%sysfunc(pathname(work))/mydata.sas7bdat" recfm=n;
data _null_;
   RC=fcopy('IN','OUT');
run;

 

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1402 views
  • 0 likes
  • 3 in conversation