09-30-2011 11:59 AM
Suppose I input just one variable Var:
Informat Var $10.;
I got the following result:
It seems to me that the informat does not work for records 2 in which only the first two characters were recognized because the third character is a blank.
How to let SAS know that the blank character is also part of the data?
09-30-2011 12:22 PM
You can also add & after VAR in INPUT statement. INPUT VAR &;
You should read about LIST, FORMATTED, COLUMN and NAMED input to understand the nuances of the INPUT statement and the interaction of INFORMAT INPUT and INFILE etc.
Need further help from the community? Please ask a new question.