WHAT IS DECIMAL DATA ERROR IN RPG IV...WHEN WILL IT HAPPENS?
Answer Posted / priya
Decimal data error occurs primarily when numeric field receives invalid values/numbers. The same goes for the case of parameter passing.
When the file is opened by a program and the record containing the invalid data is read, you will not get an error.
But if the field containing the invalid data is read in the program, and some arithematic operation is performed with that value it gives decimal data error.
For eg by being the Factor1 of a MOVEx operation, or either factor in an ADD, SUB, DIV, MULT etc., or on the right-hand side of an EVAL, or if it is involved in a WRITE or UPDATE operation -- then it will be checked, and then the program will fail.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is RETURN CURSER LOCATION in subfile?
How to Define a Procedure in RPG?
what is sflinz and sflrna?
give three main purposes of file specification ?
records can be read/update/deleted with which file?
what is the disadvantage of using global variable?
what are the three types of keywords associated with printer file ?
how do you pass parameters in cl?
what is the necessary keyword for non-join logical file?
what is full form for dds?
what does dfu program you to do on a record?
What is difference between rename and prefix?
How can we read file using curser? how to define a curser?
how to write code for singlepage in sqlrpgle with update ?
define the purpose of the *bcat function?