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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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