02-10-2016 11:25 AM
I need help in reading a text file.
My sas program is not reading dot (or fullstop) in character variable. It is coming out as missing value which is blank.
input name $ Quantity;
is there any way I can read dot (.) as it is and see it in sas dataset.
02-10-2016 11:31 AM - edited 02-10-2016 11:32 AM
If you want SAS to not convert the '.' to ' ' then you need to use $CHAR information instead of the $ informat.
data sample; length name $20 Quantity 8 ; informat name $CHAR20. ; input name Quantity; cards4; ipad 40 . 50 iphone 100 ;;;;