static void Warning( String sMessage )
String sMessage
The message to send to the program's error log.
This method sends the specified message to the program's error log. Unlike the method Runtime.Error, this method does not stop the program.
start SafeLog10( x ); if x <= 0 then do; Runtime.Warning( "log10 domain error; returning missing value" ); return (.); end; return ( log10(x) ); finish; x = SafeLog10( 100 ); print x; x = SafeLog10( -5 ); print x;