I have a text file (1.txt) as follows:
age height
20 180
35 165
44 175
I can use
data dat1;
infile '1.txt' firstobs=2;
input age height;
run;
to read the file into SAS. My question is, is there an automatic way of reading the header (variable names), that is, age and height into SAS without using 'input'? If I have many variables, I don't want to specify them one by one.
Thanks.