ascot diagnostics

A3286

Error: ‘{action}’ is not a valid $ZSTRIP action: {reason}

This constant action is not one $ZSTRIP accepts. An action starts with * or with any of <, > and =, then lists mask codes from A C E L N P U W. A ' before a code negates it, and negated codes follow the plain ones. IRIS compiles the call and raises <FUNCTION> when it runs. Write the action from those codes; the example wants "<>W".

IRIS compiles the example, and do ##class(Demo.InvalidZStripAction).Trim(" x ") raises <FUNCTION> when it runs.

Class Demo.InvalidZStripAction
{

ClassMethod Trim(text As %String) As %String
{
    Quit $ZSTRIP(text, "<>S") //! A3286
}

}

All diagnostics