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

Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST IF %ERROR can any body find the wrong please? 2.What builtin function will you use to achieve the following functionality? C QTY IFLT *ZERO C QTY MULT-1 QTY ENDIF

5 Answers   CTS,


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  


Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?

1 Answers  


what r drawbacks of OPM? Why do we go for ILE RPG?

1 Answers  






Difference between RESET and CLEAR

1 Answers   TCS,


What are the types of identifiers?

0 Answers  


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  


How to change the name of physical members Dynamically?

1 Answers  


can we use cl programming to update or delete physical files

12 Answers  


am 2010 passed out . can any one tell me which course is good to put 2+fake .guide me

1 Answers  


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

0 Answers  


Categories