Hi,
I am hoping someone will be able to give me a solution to the following problem:
I have a dataset that I have to read into Stata. Each record has 47 variables, most of them characters, and are delimited by a tab. The problem is that I have no way to determine the length of each variable, i.e., a character variable x may have length 100 (with embedded spaces) in the first record/observation, but may have length of 250 in another record while only 57 in another record. So, if I assign this variable a length of 250, then SAS will go on reading the data into the same variable in case of a record where the variable was only 50 characters long, for example.
The total number of records is more than 350,000 so that it's impossible for me to read in the data observation by observation.
Is there any command/option along with the input statement that helps me deal with this problem?
Thanks a lot!
Maggi