how can an indexed file be used as arrival sequence in RPG?
Answers were Sorted based on User's Feedback
Answer / sanpra
To achieve this on 'F' Spec leave the 'Record address type'
option as blank ( i.e. don't specify 'K' - Keyed or
anthying) .
| Is This Answer Correct ? | 25 Yes | 1 No |
Answer / 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 |
Answer / ttom
How will chain be used if 'K' is not specified as address
type in the f spec
| Is This Answer Correct ? | 0 Yes | 1 No |
i'm working on progA , in that program i want to see the userids of the users who work on this program?
Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC
How can i check the object existance in RPG program without using QCMDEXC command.
How to find d key field of a pf that doesn’t have source physical file?
what r drawbacks of OPM? Why do we go for ILE RPG?
What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file
how do I play {insert rpg system here}?
How Commitment and Roll back control is used in as400, explain with real time senario ???
What is difference between bind by copy and bind by reference?
Can we create 300 logical files based on a single physical file using the CRTLF command only once?.
What is the Record Address file. How can we use it in RPG program?
how can an indexed file be used as arrival sequence in RPG?