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)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program
what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on dspf and subfile.
Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?
Why Rpg/400 is Famous?
In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?
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?
can anyone say,what is the use of operation extended H/N/P?
What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?
1.The questions have given an array declaration and move operation then this statement is correct or not?
How can we call CL program to RPG? How many number of parameter we can pass
1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?
this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002