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 |
When will DUMP & DEBUG be ignored?
What is the difference Return and InLr?
difference between CHAIN and READE?
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.
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...
how do u find whether a record is locked or not??
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?.
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
Can anybody tell me that why we use option(*nodebugio)in H- Spec?
How would display prime numbers using CL program?
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?
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 ?