How to read a PF in QTEMP file using Java API(JTOPEN)

549 Views Asked by At

There is a ProgramCall which when run writes a PF in the QTEMP file. I want to access that PF inside the QTEMP but it says CPF3012 FIle not found in QTEMP Library. Since each job has its own QTEMP. Is it possible to track down the PF created in the QTEMP of the ProgramCall job. If yes then please suggest how to do it using JTOPEN/Java.

1

There are 1 best solutions below

3
On

ProgramCall and jdbc access from Java use different jobs, even if you use the same jt400 connection. So you can't access to the same QTEMP if you want to use SQL. Perhaps if you use another ProgramCall to access your file ? The job will be the same.