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

Answers were Sorted based on User's Feedback



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

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

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

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

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

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

Post New Answer

More RPG400 Interview Questions

When will DUMP & DEBUG be ignored?

3 Answers   IBM,


What is the difference Return and InLr?

3 Answers  


difference between CHAIN and READE?

8 Answers   HCL,


Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

0 Answers  






how do u find whether a record is locked or not??

4 Answers   CTS,


i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.

11 Answers   IBM,


what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????

1 Answers   CTS,


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  


How would display prime numbers using CL program?

0 Answers   Hexaware,


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


Categories