Hello all, I have imported a CSV file into SAS using a "read in" file that specifies variable names formats and values. I have imported this file in the past without issues. Today I imported an updated version of this csv file (exported from RedCap) using the same "read in " file. This time SAS is assigning the "values" to variables instead of the raw numbers. For example a dichotomous variable that is supposed to have either 0 or 1 raw value is actually assigned its "values" (I.e. "No" or "Yes") instead of its raw numbers (0,1).
Yesterday (and previous times), this was not the case. Yesterday I imported an older version of this CSV file (CSV-file A) without issue, manipulated a few things is SAS and tried to export this SAS file into a new CSV file (CSV-file B). I had issues with this export with the data values which I posted about earlier. Today I imported an updated version of the CSV-A file (CSV-file C) which is when the data value issue suddenly came up in SAS. Does anybody know what might be going on.
Thanks
@FourLeafCLover - This appears to be the same problem you posted earlier. If you needed to clarify your original problem then you should have added to that post and not started a new one.
Please post the SAS log of your problem, including any DATA step code generated by PROC IMPORT. We can't easily help you if you don't provide evidence.
Show the coded used to read the data.
Better, copy from the log the data step used to read the csv along with all notes and messages, paste into a text box opened on the forum with the </> icon.
From your description here are some things to check.
It takes 40,000 lines for just the data step that is reading the text file?
How many variables does this dataset have?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.