BookmarkSubscribeRSS Feed
Fluorite | Level 6



I am trying to read a txt file into SAS using the infile statement (w/ missover). I didn't get any error messages, but I got the following note in the log: NOTE: Invalid data for XYZ (numeric)  in line 66 180-183 for values that are missing. Is there any way I can tell SAS to ignore missing values? I checked the imported data and it looked fine. Also I noticed that  I only got the message for the variable XYZ but not the other variables that also have missing values. Can anyone help me understand what's going on? 


Thank you,

Tourmaline | Level 20

Please share your code, example file i.e sample data lines and your required output

Super User

Typically that error message is accompanied by a display of the input data line and the values of all the variables when this occurs in reading the data.

It might help to paste the entire example starting with the line that shows the "ruler" before the data. Paste into a code box opened using the forum's {I} menu icon to preserve formatting of the message as the message windows here will remove spaces making the diagnosis harder.

The text of the program as well would be a good idea, also pasted in a code box.


Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


Register now!

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
  • 2 replies
  • 3 in conversation