How to read alternative records in a pf by using rpg?

Answer Posted / uday bagdai

1st set the pointer on the record(depend on rrn).after increase the rrn value by 2 (rrn=rrn+2).trape their on doweq loop so you can read alternative records.because (your pointer set on alternative records)

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is data area and how it is used in rpg program ?

762


what is an online rpg?

738


How to call one program from another program in RPG? please help me with the code

1269


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

1975


What is the purpose of record level identifier?

732






what is a rpg?

705


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1567


How to write record if no field or the field are different in physical file in rpgle ?

496


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1028


what is program status data structure?

1400


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...........

3295


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4225


Explain mdt?

672


How to declare the pull button in AS/400..

1888


what is kids-rpg?

677