ascot diagnostics

A7342

Error: Argument {position} of {function} can’t be left empty

An argument between two commas is left empty where the function takes no empty argument: $FNUMBER(amount,,2) is fine, $JUSTIFY(amount,,2) is not. IRIS refuses to compile the call. Spell the argument out.

IRIS rejects the example.

Class Demo.OmittedArgument
{

ClassMethod Cents(amount As %Numeric) As %String
{
    Quit $JUSTIFY(amount, , 2) //! A7342
}

}

All diagnostics