GetServerWarning
Use this function to retrieve “Server has encountered errors” message if the servers have encountered errors due to a failed restatement or other server related errors. If no errors exist, then nothing will be returned.
Note: For more information on Server warnings, see the Longview Server Manager Guide.
Syntax:
GetServerWarning()
Syntax example:
CREATE VARIABLE X AS STRING
SET VARIABLE X = GetServerWarning()