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 |
What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file
how can i retrieve the field name from display file at run time? Devendra Singh Tomar
how many variables can we declare in cl pgm?
what is the rpg system?
How can we override a file during runtime in rpg?
What is the RPG cycle?
suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?
what is edit word and edit code
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?
Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any
How can i keyed a flat file in RPGLE
how do I declare a table or array in rpg iv?