BookmarkSubscribeRSS Feed
Uli
Calcite | Level 5 Uli
Calcite | Level 5
Hi ,

Can you please help me.

I just want to add a new note in the SAS log file like:

Note: The program is running on " SAS PROD" server.

After the following notes
NOTE: Copyright (c) 2002-2008 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.2

SO that when the user runs the log file , he can see which server he is running.


Thanks in Advance.

Best Regards
4 REPLIES 4
DataShare
SAS Employee
try adding your message to autoexec.sas
if the file does not exists create the one in the same path where sas.exe resides
e.g. -
%put The Program is running on SAS PROD Server ;
Peter_C
Rhodochrosite | Level 12
try system options LogNote1 and 2 which appears at the end)
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Check out using AUTOEXEC (with some "init" code) to probe your running-OS attributes, and possibly also NEWS for a static message displayed in the start of the log. Suggest you review the SAS companion document for your OS, as well as searching the SAS support website for supplemental technical / conference reference material on this topic.

Scott Barry
SBBWorks, Inc.
Peter_C
Rhodochrosite | Level 12
submitted incomplete response ,

LOGnote1 provides a replacement for "The SAS System" title line that appears in the log file of batch SAS runs.

LogNote2 provides a trailer message in the log

because I work with a mixture of config files, it is easy to "inherit" these batch options from the "current folder" in which SAS starts.

a useful alternative might be the -NEWS option
it refers to a file that will be echo-ed into the SAS log as this demo indicates[pre]NOTE: SAS 9.1.3 Service Pack 4

news about your sas environments


NOTE: SAS initialization used:[/pre]

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 4 replies
  • 951 views
  • 0 likes
  • 4 in conversation