Skip to content

variable_format for write_xport SAS #137

Answered by ofajardo
raghavsharda asked this question in Q&A
Discussion options

You must be logged in to vote

try passing the second dictionary i.e:

formats = {'ID':'$11', 'DATE':'DATE9','COM':'CHAR/150','RESLT':'CHAR/13'}

I am not sure about CHAR and $11 but I think DATE9 should work.

However, consider these are SAS formats, I am not sure if these work in XPT as well.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ofajardo
Comment options

Answer selected by ofajardo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants