How can i keyed a flat file in RPGLE
Answers were Sorted based on User's Feedback
Answer / syam
Sd's answer is correct.
FMASTER IF F 96 96 DISK A
F KRECNO RRN
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / rajesh
YOU CAN CREATE A LF WITH KEY
R PF1 PFILE(PF1)
K PF1
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / jvn
Declaration of file
F abcd UF A F 100 10 A I DISK
KEYLOC(1)
file name pgm desc Record len Key len &type
The above file type declaration means file 'ABCD' is a
program described file of record length 100, key field
length 10 of type character and the file is indexed with
the position of key field starting from position 1 as per
the KEYLOC value.
I abcd xy
I 1 11 keyfield_name
They key field can be subsequently defined as per the
example above.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / surendra y mudliar
Flat file can be read using RRN for random access.
| Is This Answer Correct ? | 5 Yes | 1 No |
HI, 1: WHAT IS THE FUNCTION OF %KDS?WITH PROGRAMMING CODES EXAMPLE 2: WHAT IS THE FUNCTION OF Z-ADD AND Z-SUB ? WITH PROGRAMMING CODES EXAMPLE
i want to perform uniqness on db file bt my db file nt hving key by useing rpgle.
if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.
What is I90(Insure 90)?
Can an indexed file be accessed in arrival sequence in RPG?
How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.
What is the purpose of FRCDTA keyword?
1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?
parameters cannot be passed in which one??
What is a record lock error?
Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?
what is the use of sflnxtchg?