|
Using a utility called RTVEXITKEY I found on-line from Bob Cozzi I coded
some CL to check for F3 Exit after an IBM command. It works, but then a
subsequent run of the same program will exit after pressing enter instead
of running.
Worse, calling a different CL program (from a menu) that has the same
utility will cause IT to think F3 has been pressed, and exit instead of
running when enter is pressed.
I debugged it and found the data in &JOBINFO doesn't get reset. Here is
the statement:
CALL PGM(QUSRJOBI) PARM(&JOBINFO &RTNLEN +
'JOBI0600' &JOB &INTJOBID)
After you've pressed F3 in program A and then run program B from the same
menu, &JOBINFO will still have a '1' in position 103, meaning F3 has been
pressed, even though you haven't done so in program B.
I don't know much about API calls. Can I reset that area of storage
somehow? I don't like to clear the whole field as there's loads of data in
there and it might screw something else up.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.