I think the problem is actually before that. It looks like when you INPUT the data, it's only grabbing the first 32,767 characters.
I think to make this work, you would need to find an informat to use on the INPUT statement that allows a length >32767.
From a quick read of the docs, I don't see any.
1 data _null_;
2 infile "Q:\junk\input.txt" truncover dsd delimiter='09'x lrecl=100000;
3 length var1 varchar(70000) var2 $10;
4 input var1 var2;
5
6 l=length(var1) ;
7 put l= ;
8 run;
NOTE: The infile "Q:\junk\input.txt" is:
Filename=Q:\junk\input.txt,
RECFM=V,LRECL=100000,File Size (bytes)=60012,
Last Modified=14Nov2022:11:41:23,
Create Time=14Nov2022:11:41:23
l=32767
NOTE: 1 record was read from the infile "Q:\junk\input.txt".
The minimum record length was 60010.
The maximum record length was 60010.
If you can't find an informat that will read > 32,767 characters, you might have to read it in chunks, as Tom suggested.
... View more