LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 1 Feb 2002 17:24:01 -0000
Reply-To:     Roland <roland.rashleigh-berry@VIRGIN.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Roland <roland.rashleigh-berry@VIRGIN.NET>
Organization: Virgin Net Usenet Service
Subject:      Re: how to supress the WARNING messages from the log file?

What you should be doing in any case is stripping out all messages you are interested in and placing them in a separate file where you can pay close attention to them. These won't include these particlular warning messages. You should not only strip out warning and error messages but certain note statements as well as they may contain vital messages which require your attention.

I don't know if you work on Unix but perhaps this snippet will give you the idea.

#!/bin/sh if [ $# -eq 0 ] then echo "Usage: scanlogs *.log" 1>&2 exit 1 fi while [ $# -gt 0 ] do awk '{if ( ( index($0,"ERROR") == 1 || index($0,"WARNING") == 1 \ || index($0,"MERGE statement") > 0 \ || index($0,"W.D format") > 0 \ || index($0,"truncated ") > 0 \ || index($0," 0 observations and ") > 0 \ || index($0,"outside the axis range") > 0 \ || index($0,"NOTE: Invalid") == 1 \ || index($0,"uninitialized") > 0 ) \ && index($0,"Errors printed on") == 0 \ && index($0,"scheduled to expire on") == 0 \ && index($0,"product with which") == 0 \ && index($0,"representative to have") == 0 ) {printf "%-30s %-80s\n","'$1'",$0}}' $1 shift done

"Vincent Girard" <v__girard@hotmail.com> wrote in message news:5xz68.6407$8N.372723@carnaval.risq.qc.ca... > dear SAS-ler, > After going through the SAS online doc and SAS-L archives, I could fing no > references on the possible way to cut the WARNING about the < Please contact > your SAS installation representative... ect etc expiration date of the SAS > products> > thanks > Vincent > > >


Back to: Top of message | Previous page | Main SAS-L page