10-29-2012 10:37 AM
Greetings. I am trying to load some addresses into one column of a dataset by using a datalines statement. When I run the below, only about half of the addresses are being loaded. I have tried cards, and messing with the format to no avail. I think it must be something simple, but I can't get it. One other thing, now I cannot even paste into this post, so the code is attached. I apologize for the inconvenience. Thank you.
10-29-2012 11:19 AM
The & will allow SAS to read variable length data, but it will truncate when it sees two adjacent spaces.
You can add an INFILE statement so that you can use the TRUNCOVER option.
infile datalines truncover;
input Address $100.;
Or you could use the _INFILE_ automatic variable.
length address $100;
Need further help from the community? Please ask a new question.