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
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
how can I tell when to replace the array?
what is *place and *auto keyword in prtf ?plz explain
what is file information data structure?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
is this a rpg channel?
what is the use of sflnxtchg?
how do you use commitment control in rpg?
How to declare the pull button in AS/400..
When it is desirable to describe files Internally?
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.
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...?
What is the difference between copybooks and subprocedures in as400?
how do I preserve and clean the array?
what is data area and how it is used in rpg program ?