NUM - Convert to a number Convert Operand 2 into a number and store result in Operand 1 Statement: Wage Scale Codes are held in the database as data type Char. The UserCalc must check what the next scale step is by adding 1 to the current scale and then re-converting that back to a code to read its value from the database.
LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010 LET V SCALE AS NUMBER NUM DB SWS.SCALE_CODE 00020 00020 LET V SCALE PLUS 1 ADD V SCALE AS NUMBER N 1 00030 00030 LET V SCALE AS CODE CHAR V SCALE PLUS 1 00040 00040 LET V MESSAGE EQ A EE SHOULD BE AT SCALE V SCALE AS CODE 00050 00050 MSG V MESSAGE 99999 99999 EXIT 99999