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


Please Help Members By Posting Answers For Below Questions

during input operation which indicator position is seton if there is a record lock?

1264


what are all the contents of subfile?

1298


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

1239


when do you explicitly open files and close files in an rpg program?

1572


is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

800


how does the runqry show the output?

1154


which are the member types which seu supports?

1073


what is a non-join logical file?

1336


what is the difference between normal upddta to pf and updating using dfu program?

1056


In RPG How to read a records from a file without using read opcodes?

1299


Can you summarize the steps I have to go through in writing my first cgi?

859


what is the difference between seton lr and retrn?

1618


explain the use of dftwrt display keyword?

1432


name few ibm supplied libraries?

1634


distinguish between terminating a program through seton lr and return?

818