Is it possible to access a file created by opnqryf in an RPG/400 program using keys? I have defined the KEYFLD parameter but the RPG doesn't find the records when using READE or CHAIN
Software/Hardware used:
ASKED:
May 14, 2009 3:37 PM
UPDATED:
May 18, 2009 3:52 PM
CPYFRMQRYF might do what you want. Its a bit like CPYF but uses everything you have coded into your OPNQRYF command. This is an efficient way to handle data if multiple programs need to work with the same OPNQRYF data. It prevents the overhead of multiple OPNQRYF’s which select, sequence, group, key the same data.
All the same rules apply, just as if you were reading the results into an RPG or COBOL program.