PDA

View Full Version : Runqry for a open query file



Guest.Visitor
01-01-1995, 02:00 AM
In my CLLE, I need to use OPNQRYF to select certain range of records from a file. Then I use STRDBG to debug the program. I set the break point right after the OPNQRYF statement. Is there any way to check the content of the file being selected at the break point. I tried to use 'RUNQRY *N Myfile' at command line but encountered message "Shared open not allowed for query". Any idea will be appreciated. OVRDBF FILE(Myfile) SHARE(*YES) OPNQRYF FILE(Myfile) QRYSLT(xxxx) CALL PGM(Myprogram) DLTOVR File(Myfile) CLOF OPNID(Myfile)

Guest.Visitor
10-17-2000, 09:00 AM
Eric, You should be able to insert a CpyFrmQryF command after the OpnQryF command to make a copy of the selected records. Bill