Hi,
I have a program with a subfile DSPF. On CTL1, there's function key F5 that when pressed, will submit a batch job to recalculate the records of the file that the subfile displays. What I do is I submit the job, wait for it to finish (by checking a value in a data area that is updated by the batch job), then I reload the subfile. However, the subfile is never refreshed.
Afer digging around, it would seem to be because of the break message of the submitted job completion. I would need to do the EXFMT CTL1 once the user has pressed enter on the break message, but I have no way of knowing when this has occured.
I've tried compiling with RSTDSP *YES but this only shows whatever records were in the subfile BEFORE pressing F5. I would like to avoid leaving the program and forcing the user to go back in.
Any ideas? Thanks.
I have a program with a subfile DSPF. On CTL1, there's function key F5 that when pressed, will submit a batch job to recalculate the records of the file that the subfile displays. What I do is I submit the job, wait for it to finish (by checking a value in a data area that is updated by the batch job), then I reload the subfile. However, the subfile is never refreshed.
Afer digging around, it would seem to be because of the break message of the submitted job completion. I would need to do the EXFMT CTL1 once the user has pressed enter on the break message, but I have no way of knowing when this has occured.
I've tried compiling with RSTDSP *YES but this only shows whatever records were in the subfile BEFORE pressing F5. I would like to avoid leaving the program and forcing the user to go back in.
Any ideas? Thanks.
Comment