BookmarkSubscribeRSS Feed
Tom
Super User Tom
Super User

When using the FILE statement option RECFM=N SAS will put a note into the SAS log.

6    options generic; resetline;
1    filename text temp;
2    data _null_;
3      file text dsd recfm=N ;
4      put "Some text";
5    run;

NOTE: UNBUFFERED is the default with RECFM=N.
NOTE: The file TEXT is:
      (system-specific pathname),
      (system-specific file attributes)

You get a similar message when your read from the file:

6    data want;
7      infile text recfm=N;
8      input text $10.;
9    run;

NOTE: UNBUFFERED is the default with RECFM=N.
NOTE: The infile TEXT is:
      (system-specific pathname),
      (system-specific file attributes)

NOTE: The data set WORK.WANT has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.02 seconds
      cpu time            0.01 seconds

Which you can prevent by adding the UNBUF option.

10   data want;
11     infile text unbuf recfm=N;
12     input text $10.;
13   run;

NOTE: The infile TEXT is:
      (system-specific pathname),
      (system-specific file attributes)

NOTE: The data set WORK.WANT has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

But the FILE statement does not accept this option.

 

Does anyone know if there is some way to prevent that NOTE?

It doesn't really cause any trouble, I just don't like it cluttering the SAS log.

1 REPLY 1
Sajid01
Meteorite | Level 14

use option nonotes.
This will suppress notes being written to the log.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 919 views
  • 0 likes
  • 2 in conversation