Output from COBOL display statement not showing up in log when changing userid via QWTSETP

5 pts.
Tags:
COBOL
iSeries v7r1
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

Answer Wiki

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

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    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
    125,585 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