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

how can I tell when to replace the array?

692


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.

2270


do you use message subfiles? What are the necessary keywords required coding a message subfile?

681


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

706


what is the procedure and explain about real time scenario.

1471






How can we override a file during runtime in rpg?

677


how can you display specific subfile page on the screen in unequal subfile?

669


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2364


what is the necessary keyword needed to scroll subfile records?

695


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

748


What is ment by record level identifier?

645


can you debug ile rpg program using isdb?

732


what is the use of sflnxtchg?

795


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2513


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?

609