1) How to define keyed file in CL pgm.
2) How can i read particular records in CL pgm from
database file.
Answer Posted / svankipu
See
1. In DCLF command u can declare a keyed-PF or an LF(having
desired keys)
2. In OVRDBF command u have an attribute called KEYFLD,
wherein u can mention the key-field of the above file.
Then you can use POSDBF command to position the PF or LF &
read it using RCVF command.
That's it!
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
what is the necessary keyword needed to scroll subfile records?
Explain mdt?
how do I declare a table or array in rpg iv?
What is the purpose of record level identifier?
is this a rpg channel?
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...
can you debug ile rpg program using isdb?
how does the rpg element work?
How Chain operation copies the record's data to the input buffer for the program?
what do you mean by an input subfile, what are the keywords required?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
How to call one program from another program in RPG? please help me with the code
How to select highest score of each subject or how to select highest income of every month?
what is file information data structure?
What is a record lock error?