We have a standard *PSSR subroutine for our ILE RPG programs that includes the DUMP opcode. It works fine except in CGI programs where no dump is produced when the *PSSR subroutine is executed. Does anyone know why this is?
Software/Hardware used:
ASKED:
August 14, 2008 2:56 PM
UPDATED:
June 11, 2009 7:13 PM
I know that the *PSSR routine is being executed because other code in it (such as a call to a logging routine) is being executed. If I display the CGI job in which the program is running there is no spooled output. It is as if something about the CGI job environment is causing the DUMP output to be suppressed.
You have an H spec debug(*yes) ?
Yes. If I run a CGI program in an interactive job then when the *PSSR routine executes a dump is produced. It’s only seems to be a problem when it is running in a CGI job.
I was just having similar problems..
What I did was stick the “DUMP(A)” operation code just before
the place I wanted to get the program values.
It created a spool file of the progam/cgi values and it landed in our outq QEZDEBUG
(not sure if thats a system default name).
If you can’t find the dump check the individual job logs of the Apache jobs running using the WRKACTJOB command.
Hope it helps