This is the log said , on the fifth line, the _N_ means where the error happend ? Thank you.
Always (as in ALWAYS) post logs by copy/pasting into the proper subwindow, as this makes it easier to read and allows us to quote it and insert comments.
_N_ is an automatic variable that holds the number of the current iteration of the data step. When reading text files, this usually correlates with the line that is read, which is also the case with your code (invalid data in line 4).
_N_ = 4
means that the error happened on the 4th input record.
In the future, would you please help us out and copy the log as TEXT and then paste it into the window that appears when you click on the </> icon. This preserves the formatting of the log and makes it more readable. Thank you.
Always (as in ALWAYS) post logs by copy/pasting into the proper subwindow, as this makes it easier to read and allows us to quote it and insert comments.
_N_ is an automatic variable that holds the number of the current iteration of the data step. When reading text files, this usually correlates with the line that is read, which is also the case with your code (invalid data in line 4).
Thank you for your help .
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.