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
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
how can you check for a records existence without causing and i/o (chain/read)?
what is the purpose of the indara keyword?
what is a program described file in rpg?
what are the various types of device files?
how will you find a string using pdm?
which indicator is used for read?
WHAT IS AS/400 SYNORIO?
how many levels are there in a physical file?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
what is a primary file?
how does the runqry show the output?
what is rpg fixed logic cycle?
can you have multiple key lists for a single file ?
how to write *pssr ?