BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tianerhu
Pyrite | Level 9

tianerhu_1-1615385188208.png

 

This is the log said , on the fifth line, the _N_ means where the error happend ? Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

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).

View solution in original post

3 REPLIES 3
PaigeMiller
Diamond | Level 26
_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.

--
Paige Miller
Kurt_Bremser
Super User

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).

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 914 views
  • 0 likes
  • 3 in conversation