BookmarkSubscribeRSS Feed
sas1002
Calcite | Level 5

I am trying to suppress the infile information from the log. Does anyone know how to remove the Owner Name=, Last Date Modified=, Access Permissions=, etc such as below? I would still like to see other notes (nonotes option removes too much).

 

 

NOTE: The infile
'YOUR-DATA-FILE' is:

File
Name=YOUR-DATA-FILE,
Owner Name=userid,Group Name=dev,
Access Permission=rw-r--r--,
File Size (bytes)=1998

2 REPLIES 2
ballardw
Super User

It might help to describe what you are doing to generate that message.

 

 

data_null__
Jade | Level 19

Perhaps the GENERIC option is what you need.

 

6    options generic=1;
7    filename temp temp;
8    data _null_;
9       file temp;
10      put 'x';
11      run;

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

NOTE: 1 record was written to the file (system-specific pathname).
      The minimum record length was 1.
      The maximum record length was 1.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

If you want to see the file name you can write it your self.

 

67   options generic=1;
68   filename temp temp;
69   data _null_;
70      length Filename $128;
71      if _n_ eq 1 then putlog 'NOTE: ' Filename=;
72      file temp filename=filename;
73      put 'x';
74      run;

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

NOTE: Filename=C:\Users\DATA~1.NUL\AppData\Local\Temp\2\SAS Temporary Files\_TD8420_HQ-SASPROD01_\#LN00016
NOTE: 1 record was written to the file (system-specific pathname).
      The minimum record length was 1.
      The maximum record length was 1.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

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
  • 2 replies
  • 1291 views
  • 2 likes
  • 3 in conversation