Periodic Process or Calculation returns “Operands in custom statement contains a non-numeric value” error message (16005,27101).
Root Cause
This message is returned when a Custom Statement includes MIN or MAX keyword with a Date or Character values or Aliases.
The Custom Statement name is identified in the message text (%5).
Here is an example where Date Aliases and Custom Statements that return date values are used with the Min/Max keyword function:
This example also includes an assignment of Date Temporary to the final result, which will return the error message, “Error in assignment – incompatible types“, unless the fix for “Custom Statement Assignment from Character or Date Temporary Variable Fails” is implemented.
Solutions
Find an alternative approach to using the Min/Max function with Dates or Characters. For example, converting the Custom Statement logic from MIN/MAX to an IF/ELSEIF construct may be possible.
Alternatively, implement an enhancement to Add Support for Date and Character Arguments in Custom Statement Min/Max Function.
Hints
More to come…
Details
Message Set/Number: 16005,27101
Warning Message: Operands in custom statement contains a non-numeric value
Programs: PAPUCSTM
Message Pointer: S-MSG-OPRND-NONNUM
Conditions
Custom Statement Min/Max on Date or Character values
This error is returned when a Custom Statement Alias attempts to use Date or Character values, or aliases, in a MIN or MAX function.
Leave a Reply
You must be logged in to post a comment.