how can an indexed file be used as arrival sequence in RPG?

Answer Posted / kamlesh

do not specify K for record address type in F spec.
Use RECNO(VRRN) keyword where VRRN is packed data type
having dec pos as 0 and has length enough to hold
largest RRN of ur PF.
Now move RRN in VRRN variable and apply
VRRN Chain FILE 99
ur required record is retrieved

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1973


how can I tell when to replace the array?

705


what is *place and *auto keyword in prtf ?plz explain

2730


what is file information data structure?

1376


explain sflclr, sflend, sfldlt, and sflcsrrrn?

891






is this a rpg channel?

682


what is the use of sflnxtchg?

806


how do you use commitment control in rpg?

759


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

1884


When it is desirable to describe files Internally?

1193


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.

2201


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1466


What is the difference between copybooks and subprocedures in as400?

814


how do I preserve and clean the array?

677


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

758