Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export column formats #22

Closed
tangxuan82 opened this issue Nov 2, 2017 · 3 comments
Closed

Export column formats #22

tangxuan82 opened this issue Nov 2, 2017 · 3 comments

Comments

@tangxuan82
Copy link

Hi All,
Currently, I have some troubles to export the column formats. For columns with character and non-date-time number, no column format is exported. For columns with date-time number, the column format is incomplete with only letters like "DATETIME" .

Could you please help with this?

Kind regards,

Jiaowei

@printsev
Copy link
Contributor

printsev commented Nov 2, 2017

Hi Jiaowei,

Thanks for reporting this. Would it be possible for you to share the file you experience issues with?

Thanks,
Igor

@m00nwlkr
Copy link

I have observed the same behavior as the original poster. What seems to happen is that none of the SAS format width/precision information is extracted from the sas metadata. Here are a few examples:
format in sas: $12. column format in parso: $.
format in sas: 7.4 column format in parso: null
format in sas: BEST12. column format in parso: BEST.
format in sas: MMDDYY10. column format in parso: MMDDYY.

Below is a link to some public sas7bdat files that contain sas formats. You can see that parso is not able to retrieve format width and precision information as stated in the original post.
https://www.st.nmfs.noaa.gov/st1/recreational/MRIP_Survey_Data/SAS/

@printsev
Copy link
Contributor

ok, thanks. looks like similar issue was reported in google groups as well. we will take a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants