how can we find setll setgt chain read reade readp
operations are successfull or not,give example.explain in
detail.
Answers were Sorted based on User's Feedback
Answer / adhar246
%FOUND will give the record is found or not. Not the operation was successful. To check an opcode is successful you have to use opcode extender (E) with opcode. and use %error BIF to check the opcode was successful.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / rajkalyanam
If SETLL and SETGT are successful,that is if record is
found Equal Indicator gets ON.
If READ,READE and READP are not Successfull that is if
record is not found or retrieved Equal Indicator gets ON,
For CHAIN High indicator gets on when CHAIN operation is not
not successfull.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / harshad r suryawaunshi
Use If %found with Chain and with inedicator with and all
READ operations. if chain is unsuccessful execution of
lines in %found loop will not executed. if Read is success
full the mentioned indicator will be off.
| Is This Answer Correct ? | 1 Yes | 2 No |
how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.
How to read a record from file where there is multiple record occurrence is available?
How do you find whether a record is locked or not?
Why did we give STRSRVJOB while debugging batch program
How to declare the pull button in AS/400..
how can an indexed file be used as arrival sequence in RPG?
1. I have2 records in a PF. READ PF DO DSPLY EMPNO RETRN DSPLY EMPNO ENDDO What was the output 2. SETON LR vs RETURN 3. Primary File 4. How to delete a deleted spaces 5. How to read a PF in reverse order in CL 6. I have a object in Lib A, B and C. But it shows in D Lib..Why? 7.
1. If my rpg program has a date field, What extra care I have to take while compiling that RPG program? 2. 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?
how does the rpg element work?
Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?
i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?
i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.