Comments (7)
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.
You are right; it is compressed. Am I right in read the data as having the strings "XZXZ1234567"?
from readstat.
The data elements are "ZXZXZXZ1234567".
from readstat.
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.
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.
I might be able to help with that bug -- have a couple ideas. Let's continue the discussion over there.
from readstat.
Fixed in c92f697
from readstat.
Related Issues (20)
- ENH: Add buffer based IO support
- Use-after-free Error , [gcc12 couldnt build] HOT 1
- Improve SAS7BDAT reader performance HOT 1
- Troubleshooting of reading sas7bdat format HOT 2
- Non-deterministic result of readstat_get_file_label in a DTA file HOT 1
- Different results of readstat_get_modified_time on Windows and Mac HOT 1
- readstat exporting value labels to sas7bcat from a Stata dta.
- Example for SAV metadeta changing
- Numeric variables files generated from CSV input always have decimals HOT 1
- Should the write functions use int64_t instead of long for row_count. HOT 1
- Number of rows in sas7bdat file nearly tripled
- Skip deleted observations in SAS7BDAT files HOT 10
- Security: heap-buffer-overflow in readstat_convert
- Unable to parse sas7bdat when data set page size >= 16MB HOT 2
- `Error: Failed to parse [...].sav: Invalid file, or file has unsupported features` when using haven package to read .sav file HOT 3
- Problem in export file (in python libary) HOT 1
- `sprintf()` -> `snprintf()` HOT 2
- Security: Heap-buffer-overflow in sas_read2
- UCRT64 builds of readstat 1.1.9 fail
- [1.1.9] sas7bcat regression on big-endian architectures HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readstat.