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
during input operation which indicator position is seton if there is a record lock?
what are all the contents of subfile?
what would be the effect on the field where reverse image, underline and highlight display attributes were active?
when do you explicitly open files and close files in an rpg program?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?
how does the runqry show the output?
which are the member types which seu supports?
what is a non-join logical file?
what is the difference between normal upddta to pf and updating using dfu program?
In RPG How to read a records from a file without using read opcodes?
Can you summarize the steps I have to go through in writing my first cgi?
what is the difference between seton lr and retrn?
explain the use of dftwrt display keyword?
name few ibm supplied libraries?
distinguish between terminating a program through seton lr and return?