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

When will DUMP & DEBUG be ignored?

3 Answers   IBM,


1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword

1 Answers   CSC, CTS,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?

2 Answers  


what will happen two jobs have same name are submitted

5 Answers   CTS,


How would display prime numbers using CL program?

0 Answers   Hexaware,


suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .

4 Answers   CSC,


CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?

6 Answers   Satyam,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

6 Answers   CTS, IBM,


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  


what is meant by record lock.how records are locked.what is the purpose of record lock.if records are locked what happens.how to find out which record is locked.

4 Answers   HCL,


Categories