Hi!
Just noticed there's a bug in the format parser when writing SAS xport files.
xport_write_variables
is using sscanf
to pull the format name, width and decimals:
Because there are no spaces between the name and the other bits the whole string is being consumed as the format name by %s
, and width and decimals are never set. In many cases this is still interpreted correctly from the name alone, but others have issues, for e.g.:
It seems like a bit of a pain to parse - the format is <name><width>.<decimal>
, but width and decimal and the period between them are all optional. Name follows the SAS naming rules, with the additional requirement that it can't end in a number.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4