BookmarkSubscribeRSS Feed
Willempie
Calcite | Level 5
Greetings.

OPTIONS COMPRESS=YES doesn't seem to work with PROC CIMPORT. What I did was:

[1] created an uncompressed SAS-dataset and CPORTed it. Proc DATASETS / CONTENTS shows me that the SAS-dataset is, indeed, uncompressed.
[2] I then deleted the dataset and recreated it with OPTIONS COMPRESS=YES. Works fine. Proc DATASETS /CONTENTS shows me COMPRESS CHAR etc.
[3] Next I CIMPORTed the file from step [1] and I specified OPTIONS COMPRESS=YES in the program.

Much to my surprise proc DATASETS / CONTENTS shows me that the dataset is no longer compressed! Is this how it's supposed to work? Proc CIMPORT undoes my compression? We're running (mainframe) SAS 9.0101M3

TIA
2 REPLIES 2
LinusH
Tourmaline | Level 20
By reading the documentation, including this SAS note: http://support.sas.com/kb/4/720.html, my guess is that the compression option used when creating the transport file is taking precedence of any options set in the current session.

/Linus
Data never sleeps
Willempie
Calcite | Level 5
Linus, I think you're right. I found Usage Note 4720 and, indeed, CPORT preserves the compression-attribute and CIMPORT recreates with whatever info it finds on the transport-file.

How unfortunate.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 883 views
  • 0 likes
  • 2 in conversation