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 |
Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks
Anybody can explain the difference between SFLCLR & SFLINZ?
how can i retrieve the field name from display file at run time? Devendra Singh Tomar
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??
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.
What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?
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.
What is the difference between inner join @ outer join
Suppose in CL we reach at end of file and again we have to reach from 1 record
How to declare the dynamic(run time) array in rpgle? can you please give example
how to change the length of the field in a physicalfile?
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