sas7bdat_to_csv
Hi Jared,
I tried to use sas7bdat_to_csv --header test_1.sas7bdat and got this errror:
[test_1.sas7bdat] magic number mismatch Traceback (most recent call last): File "/usr/local/bin/sas7bdat_to_csv", line 97, in <module> main(options, args) File "/usr/local/bin/sas7bdat_to_csv", line 38, in main with SAS7BDAT(in_files[i], log_level=log_level, **opts) as f: File "/usr/local/lib/python2.7/site-packages/sas7bdat.py", line 439, in init self.header.parse_metadata() File "/usr/local/lib/python2.7/site-packages/sas7bdat.py", line 1501, in parse_metadata self.properties.page_length TypeError: an integer is required
Any idea ?
Comments (3)
-
repo owner -
reporter Thank you for quick response ! This file was created using a JMP tool. User's generate the data and save it as sas7bdat. Any recommendations as far as sas7bdat files generated from other tools ?
Thank you
-
reporter Hi Jared,
Thank you for quick response! I appreciate your help.
I added a comment on the wiki page.
Regards, Sofonias
- Log in to comment
Magic number mismatch means the file is not a sas7bdat file or the file was corrupted somehow