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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.