BookmarkSubscribeRSS Feed
Kiko
Fluorite | Level 6

Hello 

 

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,

2 REPLIES 2
novinosrin
Tourmaline | Level 20

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

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

sas-innovate-2024.png

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
  • 876 views
  • 0 likes
  • 3 in conversation