It runs but I'm getting the same error message as before.
So I looked at your program file and you have lines in there that are up to 276 characters long, with TABS. Expanding the tabs makes the line up to 297 characters long.
NOTE: 34 records were read from the infile 'c:\downloads\Code.txt'.
The minimum record length was 0.
The maximum record length was 276.
NOTE: 34 records were written to the file
'c:\downloads\code_expanded.txt'.
The minimum record length was 0.
The maximum record length was 297.
Try letting SAS know that it should expect such long lines by adding a LRECL option to the %INCLUDE statement.
%include 'Code.txt' / lrecl=1000 ;
In the future just put a few more line breaks into your commands so that they will be readable by both humans and SAS.
Oh - is that simply lrecl and not s2!!!
The LRECL was causing the record to be truncated as it was read into the input buffer. Settings for S2 are applied to the data in the input buffer.
Think we had this discussion already in the past when I got this wrong. Having a "deja-vue" right now....
Seems I've got the analysis right but subscribed the wrong remedy. Hope this will stick with me from now on 😉
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.