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



how can we find setll setgt chain read reade readp operations are successfull or not,give example...

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

how can we find setll setgt chain read reade readp operations are successfull or not,give example...

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

how can we find setll setgt chain read reade readp operations are successfull or not,give example...

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...

Answer / dkumar3

%Found is not used with Chain. %equal is used with Chain. %Found is used only with SETLL and SETGT

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More RPG400 Interview Questions

Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks

3 Answers  


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??

1 Answers  


I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.

2 Answers  






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,


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

0 Answers  


What is the difference between inner join @ outer join

4 Answers  


Suppose in CL we reach at end of file and again we have to reach from 1 record

3 Answers   TCS,


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


how to change the length of the field in a physicalfile?

12 Answers  


Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20

5 Answers  


Categories