I understand that you have 24 numeric variables each is two digits.
The minimum length of a record is 24x2=48. I assume max length is about 72.
Check next code:
data want;
infile "<path and file name>.txt" truncover;
input code 5. a_line $char72.;
a_line = compress(a_line,' '||'09'x); /* remove spaces and tabs */
array varx {*} x1-x24;
do i=1 to length(a_line) by 2;
varx(i) = input(substr(a_line,i,2),2.);
end; drop i;
run;
... View more