data country;
input country_ID state $ country_name $;
datalines;
1 Texas Colin
. Texas Dallas
3 . Deklab
;
run;
I have below dataset here if i am using " " in 3rd row , I am getting lost card error but if i am using "." Which we used for numeric missing value. I am getting the o/p. Please tell me Why this is happening
Since you do not use an INFILE statement with the DSD option, a sequence of delimiters (blanks) will be read as one delimiter, causing a skip to the next dataline.
When using the default $w. informat, a single dot will also be interpreted as a missing character value.
Since you do not use an INFILE statement with the DSD option, a sequence of delimiters (blanks) will be read as one delimiter, causing a skip to the next dataline.
When using the default $w. informat, a single dot will also be interpreted as a missing character value.
Whenever I need to read missing values (or values containing blanks) from datalines, I use INFILE, DSD and DLM= with a suitable delimiter (comma, pipe, ...)
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!
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.