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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 903 views
  • 0 likes
  • 2 in conversation