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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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