BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
brophymj
Quartz | Level 8

It runs but I'm getting the same error message as before.

Tom
Super User Tom
Super User

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.

Patrick
Opal | Level 21

Oh - is that simply lrecl and not s2!!!

Tom
Super User Tom
Super User

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.

Patrick
Opal | Level 21

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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 19 replies
  • 5385 views
  • 6 likes
  • 4 in conversation