07-09-2011 05:13 PM
Hi everyone - SAS newbie here. I have a question about reading in external files. I'm using the INFILE statement read in a pipe delimited file, and each column has varying widths. There are a few columns that also have missing values (which essentially means that that field looks like ||). Using the infile statement, I'm seeing that SAS is skipping over the empty field and not filling it in as null or empty, but reading from the next column. For example:
The missing column between the ABCDEFG and 234234 is filled in with the data from 234234, and the final column, FDSA, ends up with either garbage data in it or a "." . How can I handle this? All of the fields are of varying length, some of them longer some of them shorter than 8 characters.