@ballardw
<Line 2 looks like this: YO,,,,,,,,,,,,,,,,SIXDIG,SIXDIG,,,,,>
This was intentional. It was my attempt to dictate that the variables w/ these character values (e.g. YO, SIXDIG) be read-in as character variables, despite the fact that their subsequent values are purely numeric.
<Using guessingrows you have to indicate at least the first datarow. >
I may not understand how to implement this GUESSINGROWS approach =;-)...I was trying to indicate the second row - the row w/ YO and SIXDIG - as the row that SAS should use to determine the data type.
<Your next to last row of data has invalid values for what are time values in the other rows. 101 is not going to be read as time when the rest are 12:00 AM type (when using proc import).>
Will the times be read in as times?! I thought that SAS would simply create character variables for these variables given that there is no AM/PM associated w/ the time in one observation. Also, in my larger dataset, there are some instances where there is no space between the last digit and the AM or PM (e.g. 12:00PM v. 12:00 PM).
Couldn't this problem also be addressed w/ the GUESSINGROWS approach, assuming I implemented it correctly? If I put a time like, 12:00 PM, in the GUESSINGROWS row, wouldn't that dictate the variable type (Character) and maybe the informat?
Thanks again for your help!
... View more