ascot diagnostics

A4652

Error: $ZCONVERT’s fourth argument must be an unsubscripted local variable

The fourth argument of $ZCONVERT, the handle, is not an unsubscripted local variable. $ZCONVERT writes the handle, which carries the unconverted rest of a long string to the next call. IRIS takes only an unsubscripted local variable there and refuses to compile anything else. A subscripted variable gets ERROR #1010: Missing right parenthesis, and a global, a property or a literal gets ERROR #1011: Invalid name. Give it an unsubscripted local variable.

IRIS rejects the example.

Class Demo.HandleNotALocal
{

ClassMethod ToUtf8(text As %String) As %String
{
    Quit $ZCONVERT(text, "O", "UTF8", state(1)) //! A4652
}

}

All diagnostics