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 we use cl programming to update or delete physical files
How do you do indexing in a physical file?
I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
Why we cannot call a service program? If I add a PEP can i call the service program?
How to find d key field of a pf that doesn’t have source physical file?
How to search particular records from the database file in rpg?
Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?
why subproc not run in dftactgrp?????/plz explain
Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?
1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF
The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?