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 does the rpg element work?
How can you delete a record from a file in RPG without using DELETE oppcode?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
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
steps involved in debugging and types of debugging modes?
difference between 1:%found and %equal built function in detail with example .
how we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?
1.What is referential Integrity? 2.What is Foreign Key? 3.What is Transfer Control? 4.What is Free format?
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
How to index LF by relative record no (RRN)
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
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?.