Hello Tom, Mine is from the listing output, not the ODS output. Do you see anything wrong with the NPUT statement below? I used a similar syntax for hundreds of PROC HTTP response data files. No issues, Thanks, data year_values; length year $4; infile source length = reclen lrecl = 32767 end=eof; re = prxparse('/(\d{4})<\/option>/'); /* Read the HTML line by line */ do while (not eof); input html_line $varying32767. reclen; Len_html_line = length(html_line); /* Match and extract the years using regular expressions */ if prxmatch(re, html_line) > 0 then do; call prxposn(re, 1, start, end); year = substr(html_line, start, end); output year_values; end; end; run;
... View more