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

parameters cannot be passed in which one???

4 Answers   CTS,


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


Why there is invention of RPG if we can do insert update delete in CL through SQL.Why the rise of RPG?

1 Answers   Infogain,


How to check which are the pgms using 1 perticulate file.? I know there is many tool available for X-reference...but need to know is there any command available in the system...?

4 Answers   IBM,


Please help me, I have created window subfile,I have created Footer with same lengh and postion of window SFL. When I call the pgm, first is shows only Footer and then it shows subfile records.This time Footer is not showsing ..plz hel me how can i do it...? Sameple DDS and RPG: A R WIN1 SFL A*%%TS SD 20090130 165346 MUNSHIJ REL-V4R2M0 5769- PW1 A FLD001 1Y 0B 4 3EDTCDE (Z) A ATFILE R O 4 7REFFLD (QWHFDBAS/ATFILE LIB/LIBF- A ILE) A R WINCTL SFLCTL (WIN1) A*%%TS SD 20090202 123459 MUNSHIJ REL-V4R2M0 5769- PW1 A ALTNAME ('y') A SFLSIZ (0004) A SFLPAG (0004) A WINDOW (FOOTER) A ROLLUP (27) A ROLLDOWN (28) A CF12 (12 'Cancel') A 50 SFLDSP A N51 SFLDSPCTL A 51 SFLCLR A 1 2'Select Option,Press enter' A 2 3'1= Select' A R FOOTER A* A WINDOW(8 31 9 43) A 8 4'F12 = Cancel' A R DUMMY ASSUME A 24 10' ' in RPG: Dow *IN12 = *Off Write Footer Fxfmt WInCTL

2 Answers  






What is journalling and commitment control?

3 Answers   IBM,


I want to add 10 days in current date. how it is possible in CL program...?

11 Answers   CSC,


which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


How can i check the object existance in RPG program without using QCMDEXC command.

7 Answers   IBM, JDA,


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


Can someone tell me tell me what is meant by message wait...?

1 Answers  


How to index LF by relative record no (RRN)

1 Answers  


Categories