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 |
How can i keyed a flat file in RPGLE
How to print output from openquery in as400 ?
Setps to create .csv file on IFS folder in AS/400( V4R3)....?
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?
How do I read records from Subfile? what is the purpose of READC explain with example?
what do you mean by an input subfile, what are the keywords required?
How to select highest score of each subject or how to select highest income of every month?
WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?
wat is the difference between dataarea and data queue?
5 Answers Airtel, Four soft, Shahi Exports,
purpose of pannel group??/
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.
which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?