5 pts.
 Output from COBOL display statement not showing up in log when changing userid via QWTSETP
If I change userids in my CL via QSYGETPH/QWTSETP I get no QPJOBLOG.

After adding DSPJOBLOG  OUTPUT(*PRINT)  to the CL I get a joblog.

But still no output from the DISPLAY statements in the program.

If I don't switch userids, I see the messages in the QPJOBLOG.

 

 



Software/Hardware used:
iSeries V7R1
ASKED: April 25, 2012  6:48 PM
UPDATED: April 25, 2012  9:01 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

If I change userids in my CL via QSYGETPH/QWTSETP…

After you switch to a different profile, the output no longer belongs to you. The output will go to the user that you switched to. If you run a DSPJOBLOG *PRINT command under your profile, that output will be yours.

So, for example, if you switch to SWUSRPRF, you might use WRKSPLF SELECT(SWUSRPRF) to review spooled output for that user.

Tom

 108,135 pts.