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



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

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

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

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

Post New Answer

More RPG400 Interview 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?

1 Answers  


what was the robotech rpg?

0 Answers   IBM,


What is the Record Address file. How can we use it in RPG program?

4 Answers  


how can we can we the data decimal error?how can we open such file in support

1 Answers  


How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,






use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


HI,1: What is the function of 'SETON LR' AND '*INLR=*ON ? 2:Can we used "seton lr" OR "*INLR = *ON" in between the program code ? 3:if yes then according to there function the code which is written acter seton lr/ *inlr should not be execute . Can any one tell me why those code get executed ?

2 Answers  


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,


What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?

1 Answers   IBM,


what is file information data structure?

1 Answers   IBM,


Categories