Message queue – Break Handling Program

240 pts.
Tags:
AS/400
DSPMSG
I should get a break message instead of giving DSPMSG every time, Created message in my lib (TSTMSGQ/TSTLIB) added this in my user prf (TSTPRF). I'm getting completed normally messages whenever a job completes. But every time I should check by giving DSPMSG cmd. Can anyone tell me how to make it into *break mode. CHGMSGQ MSGQ(TSTLIB/TSTMSGQ) DLVRY(*BREAK) PGM(*SAME) was already tried but i didn't get break message when job completes. So please suggest any other way to do it. Where the default Break Handling Program will reside in AS/400 system and what its name?

Software/Hardware used:
AS400 , V5R4
ASKED: November 26, 2012  11:20 AM
UPDATED: November 26, 2012  1:09 PM

Answer Wiki

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

You need to run the CHGMSGQ MSGQ(TSTLIB/TSTMSGQ) DLVRY(*BREAK) command on your interactive session, not in the job that is being submitted. If you have a signon program associated with your USRPRF, you can put the command in there and never have to worry about it again.

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
  • TomLiotta
    What is the DLVRY() attribute for the TSTPRF user profile? How was the job submitted? Which user ran the SBMJOB command?   The CHGMSGQ DLVRY(*BREAK) command will allocate the message queue in break mode for the job that runs the command. When that job ends, break mode also will end.   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    About the 'Answer', if DLVRY(*BREAK) is specified on the TSTPRF user profile and TSTPRF is submitting the job, the CHGMSGQ is not needed. There wouldn't seem to be much reason to assign TSTMSGQ to TSTPRF otherwise. -- Tom
    125,585 pointsBadges:
    report
  • Explorer1910
    Hello frnds,Thanks for the reply.How was the job submitted? Which user ran the SBMJOB command?Job was ran on the same user profile(TSTPRF) delivery mode was mention as *Break. But the mistake i have done is 'Severity' which i was given as '70' instead of '0'.After changing it to '0' i got the break msg.
    240 pointsBadges:
    report
  • TomLiotta
    But the mistake i have done is ‘Severity’ which i was given as ’70′ instead of ’0′.   Yes, good catch. The user profile SEV() attribute defaults to 0, and it's unusual for anyone ever to have reason to change it. Usually if a change is wanted, the message queue severity is changed and the user profile attribute is left alone.   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