× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 2019-03-22 10:44 AM, Justin Taylor wrote:
I run into this issue occasionally. I'm using the RPGUnit plugin in RDi, and the test fails with a runtime error. In order to figure out the details of the error I need the joblog. I haven't found a way to do this, so I'm forced to start 5250 session and run the tests from there.


Justin, a workaround is to print the joblog from the *PSSR of the test procedure.

dcl-proc Test_BadCall_PrtJoblog export;
dcl-pr bad_pgm extpgm;
end-pr;
dcl-pr qcmdexc extpgm;
cmd char(300) const;
cmdlen packed(15:5) const;
end-pr;
dcl-s cmd varchar(300);

bad_pgm();
assert (%status() = 0 : 'Expect status <> 0');
begsr *pssr;
cmd = 'DSPJOBLOG OUTPUT(*PRINT)';
qcmdexc (cmd : %len(cmd));
endsr;
end-proc;


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.