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

what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?

1 Answers  


in a cl pgm records are copied to a file in qtemp a pgm is called to delete records from the file in qtemp no of records in file in library qtemp is checked wat shud be the count of records let say it was 10 initially endpgm

2 Answers  


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

0 Answers  


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?

0 Answers  






Can more than one subfile record be displayed on one line?

7 Answers   IBM,


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


difference between CHAIN and READE?

8 Answers   HCL,


how can we know running job is batch or intractive ? i need all the possibilites.........plz help me

3 Answers   HSBC, IBM,


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 C EVAL RESULT = (2 + 3 * 2) ** 2 / 2

2 Answers  


Categories