25 pts.
 RPG DUMP opcode produces no output in Apache CGI programs
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

Answer Wiki:
I haven't encountered this situation, but I would ask are you sure the subroutine is being executed? Could the program be silently failing for some other reason? You can use standard green-screen debug (STRDBG) on CGI programs if you can determine the job ID running your CGI requests. Also, the dump will likely go to an outq associated with the CGI server job, or possibly to outq QEZJOBLOG. You may want to look in those places for dump output. Good luck!
Last Wiki Answer Submitted:  August 14, 2008  3:58 pm  by  Buzzwords   45 pts.
All Answer Wiki Contributors:  Buzzwords   45 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 25 pts.

 

You have an H spec debug(*yes) ?

 44,180 pts.

 

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.

 25 pts.

 

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

 3,910 pts.