GithubHelp home page GithubHelp logo

Comments (7)

vinhdizzo avatar vinhdizzo commented on June 4, 2024

Are you sure the file is uncompressed? I explicitly set options compress=yes. Here's what the SAS log shows:

NOTE: The data set LIBFOO.COMBINED_ALL_SUB_00 has 1 observations and 2 variables.
NOTE: Compressing data set LIBFOO.COMBINED_ALL_SUB_00 increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.03 seconds
      cpu time            0.01 seconds

from readstat.

evanmiller avatar evanmiller commented on June 4, 2024

You are right; it is compressed. Am I right in read the data as having the strings "XZXZ1234567"?

from readstat.

vinhdizzo avatar vinhdizzo commented on June 4, 2024

The data elements are "ZXZXZXZ1234567".

from readstat.

evanmiller avatar evanmiller commented on June 4, 2024

I've researched this issue a bit more -- it occurs when a nominally compressed file actually contains uncompressed data, usually because the data is highly variable and there would not be any compression savings. This paragraph has more technical information: https://github.com/BioStatMatt/sas7bdat/blob/master/vignettes/sas7bdat.rst#compressed-binary-data-subheader

I am not sure how to identify this kind of uncompressed data sitting in a compressed file. In any event, you are unlikely to see the issue "in the wild" -- I think it just cropped up from compressing a file with only 2 columns and no repeating bytes. (I conjecture if you change the data to "ZZZZZZZ1234567", it will parse OK.)

I'll leave this issue open for now, but it won't be a high priority until I hear that it's affecting real-world usage.

from readstat.

vinhdizzo avatar vinhdizzo commented on June 4, 2024

Sure. I'll try to use haven more often now and will let you know if this issue crops up in any of my data sets. Again, I don't use compress=yes that often so most likely not. Thanks so much for your responsiveness in getting these bugs fixed.

Is it safe to assume that the bug specific to AIX will have to wait for when Hadley has time?

from readstat.

evanmiller avatar evanmiller commented on June 4, 2024

I might be able to help with that bug -- have a couple ideas. Let's continue the discussion over there.

from readstat.

evanmiller avatar evanmiller commented on June 4, 2024

Fixed in c92f697

from readstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.