1.WHAT IS WRONG WITH THE CODE BELOW?
C CUSTNO CHAIN CUSTMAST
IF %ERROR
can any body find the wrong please?
2.What builtin function will you use to achieve the
following functionality?
C QTY IFLT *ZERO
C QTY MULT-1 QTY
ENDIF
Answer Posted / ajit
C CUSTNO CHAIN CUSTMAST
IF %ERROR
1) The position is incorrect.
2) If you mistakenly wrote incorrect position, then for %ERROR, you should use CHAIN(E).
3) Use EVAL %ABS(Name of the variable) for 2nd Q.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
can I touch the array during treatments?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what is data area and how it is used in rpg program ?
what is an online rpg?
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?
how do I preserve and clean the array?
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?
how do I play {insert rpg system here}?
How Chain operation copies the record's data to the input buffer for the program?
how do I declare a table or array in rpg iv?
How to select highest score of each subject or how to select highest income of every month?
what is the procedure and explain about real time scenario.
What is the difference between copybooks and subprocedures in as400?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?