I am reading in a raw data file that is delimited by commas and quotes around text fields. My data looks like:
"Smith",30,90,100,120,130,140,150,160,"Philadelphia"
Most of the fields in the raw data file are not needed and I would like to SKIP the unused fields when creating my INPUT statement.
Is there a way that I can avoid defining all the fields that are of no interest?
In the example above, my INPUT statement could look like:
INPUT Name
Age
Value1
Value2
Score1
Score2
Result1
Result2
City ;
However, in my actual data there are over 70 fields that I would have to define. Is there someway that I can specify only the two or three variables that I need and skip all the others.
Any advise will be appreciated. Thank you!
"Smith",30,90,100,120,130,140,150,160,"Philadelphia"
Most of the fields in the raw data file are not needed and I would like to SKIP the unused fields when creating my INPUT statement.
Is there a way that I can avoid defining all the fields that are of no interest?
In the example above, my INPUT statement could look like:
INPUT Name
Age
Value1
Value2
Score1
Score2
Result1
Result2
City ;
However, in my actual data there are over 70 fields that I would have to define. Is there someway that I can specify only the two or three variables that I need and skip all the others.
Any advise will be appreciated. Thank you!