what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4755


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

732


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

1027


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

772


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

716


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

1062


how do I play {insert rpg system here}?

790


what was the robotech rpg?

870


what is *place and *auto keyword in prtf ?plz explain

2928


How can we know running job is batch or interactive?

866


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1755


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1707


what are the key words you must use when using a subfile?

896


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5924


how can I tell when to replace the array?

905