You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
read_sas() fails to appropriately process SAS formats that include negative values.
For example, if you have a .sas7bdat file with a single numeric variable named x with values -7, 1, and 2 and a SAS format catalog file that defines the format:
proc format;
value testf
-7="Missing"
1="Yes"
2="No"
;
run;
Then the attributes of dataframe$x show a value of -0.625 instead of -7.
I'd be curious enough to look try and look into this but I don't have access to SAS on my personal machine, would you be able to provide the relevant bdat/bcat files ?
I'd be curious enough to look try and look into this but I don't have access to SAS on my personal machine, would you be able to provide the relevant bdat/bcat files ?
For what it's worth, Pyreadstat is able to correctly parse the format values and labels. I thought that Haven and Pyreadstat relied on the same underlying C code to read SAS data sets but perhaps they use separate code for parsing SAS catalog files.
read_sas() fails to appropriately process SAS formats that include negative values.
For example, if you have a .sas7bdat file with a single numeric variable named x with values -7, 1, and 2 and a SAS format catalog file that defines the format:
proc format;
value testf
-7="Missing"
1="Yes"
2="No"
;
run;
Then the attributes of dataframe$x show a value of -0.625 instead of -7.
The text was updated successfully, but these errors were encountered: