setErrXBAD Method

Class: Runtime

Description

This method reports integrity errors on individual columns within a record. Based on the information provided in the parameters, it can provide the current value and the expected values for the column. The expected values are based on business rules set up for the column.

 

image\msgs.gif

This method must always contain a clause on the same line of code to check the value of ER and quit if this method has set the variable.

Syntax

Runtime.setErrXBAD(String table, Number msgID, String column,

Primitive curval, Primitive altval)

Parameters

table

The table name under which the error will be reported.

msgID

The message number that corresponds to the message that needs to be displayed from the STBLER table.

column

The name of the specific column being reported.

curval

The value contained in the record for the column that has bad data.

altval

The system-calculated value for the column.

Returns

Void

When Became Available

Profile v6.3

Example

do Runtime.setErrXBAD("DEP",180)

do Runtime.setErrXBAD("DEP",532,"DEP.AIICHND")

do Runtime.setErrXBAD("DEP","RCMAX",I)

do Runtime.setErrXBAD("LN",121,"UDBAL",ln.udbal,0)