Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
Answers were Sorted based on User's Feedback
Answer / ganesh kandaswamy
Chain is nothing but the combination of setll and reade. After reaching 4th record if we chain it will again reading the 1st record.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / aanchal
After reading 4 records if we chain the file. It will read the 4th record. That is the 4th record will be read twice.
Is This Answer Correct ? | 0 Yes | 5 No |
1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?
how do I preserve and clean the array?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?
give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program
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?
what is the difference between SETON RT & RETURN?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
I have some doubts on subfile----------- -----I wrote a prog on subfile to display the records. Every thing is clear but i defined a field called "opt" as input field in subfile record format from that input field i wish to enter into new screen called "EDIT" which i created it as a separate RCD in display file. i gave opt as 2 for edit just like in WRKMBRPDM screen please telll me the code and how can i code for it in RPG.
What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?
How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?
11 Answers Bank Of America, CSC, IBM,