what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
Answers were Sorted based on User's Feedback
Answer / anusha
Reason
The program gives the decimal data error if a Numeric value is passed from a numeric field to a non numeric field.
It usually occurs if the values are passed from one program to another.
How to avoid
Initialize a value to the field by INZ
The size and Decimal format of the passed and the passing parameter should be the same.
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / swapan dey
A PGM can goes to a msgwait condition if it has occur any error i.one of them is datadecimal error.dump the pgm it will throw an error message if it is not handle through pgm just go to that particuller line no rectifies the wrong value passsed intoo it then compile the pgm once again it will run .
| Is This Answer Correct ? | 3 Yes | 4 No |
can i use UPDDTA command in rpg program in which contains a file
how can an indexed file be used as arrival sequence in RPG?
i want to retrieve record b/w 2 dates in as400
How to handle duplicate error handling in RPG?
How to call one program from another program in RPG? please help me with the code
I want to add 10 days in current date. how it is possible in CL program...?
What is the Record Address file. How can we use it in RPG program?
how to run only 10 modules of existing N modules in service program in RPGILE ?
what is commitment control?explain about it?
There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
In how many ways a session/device error occurs,,, and what is the remedy for it?