RPG DUMP opcode produces no output in Apache CGI programs

25 pts.
Tags:
Apache
CGI
RPG
RPG ILE
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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!

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • NickT
    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 pointsBadges:
    report
  • philpl1jb
    You have an H spec debug(*yes) ?
    51,305 pointsBadges:
    report
  • NickT
    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 pointsBadges:
    report
  • ToddN2000
    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
    15,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following