Without having tried, I would use a second input variable:
input @1 banner $32000. @32001 banner2 $32000.;
If there is more than 32k data in single line, you also probably want to increase the "lrecl=" to something bigger than 32k, e.g. "lrecl=1000000;"
Bart
IF you have access to a Viya 4 environment then you could load the .csv into a CAS table where you've got data type varchar(*) that can store more than 32KB characters.
You don't seem to be "importing" anything. You appear to just want to READ a text file.
For example to read up to 5*32000 bytes from each line into 5 character variables just do something like this:
data want;
infile 'myfile' lrecl=1000000 truncover;
input (var1-var5) ($char32000.);
run;
If the lines are varying length it will probably save space and be easier to work with if you read the text into multiple observations.
data want;
infile 'myfile' lrecl=1000000 length=ll colum=cc truncover;
row+1;
do col=1 by 1 until(cc>ll);
input string $char32000. @;
output;
end;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.