WoodEngineer
2280 pts. | May 18 2009 3:52PM GMT
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.






