Runtime.Warning

Prototypes

static void Warning( String sMessage )

Parameters

String sMessage
The message to send to the program's error log.

Remarks

This method sends the specified message to the program's error log. Unlike the method Runtime.Error, this method does not stop the program.

Example
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;
See Also

Runtime.Error