MSGW in WRKACTJOB

10 pts.
Tags:
CL
CLLE
Message Waiting status
MSGW
RPG
RPGLE
WRKACTJOB in AS400
How to end a job in MSGW how we can give in a program all the proces to give OPT-7 in front of a job which is in MSGW & giving 'G' to end that in RPGLE /CLLE progrm that too in a scheduled time

Answer Wiki

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

I dont know a way using wrkactjob however you can monitor for messages inside cl very easily or if using ile rpg you can use the monitor op code to catch any error while adding or updating a file

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
    Do you want your programming to handle every job that might go into MSGW status? or do you want to monitor only specific jobs for which you already understand the MSGW status? MSGW status can arise in two very different ways. If you want to respond to *INQUIRY messages that the job has sent and is waiting on a reply, that's one of the ways that cause MSGW. That seems to be what you're looking for. However, you can't simply watch for MSGW status on every job and run the same procedure unless you know ahead of time which jobs to ignore. If you don't know which ones to ignore, you need to extract some info from the job to see what kind of MSGW is happening. A job that is monitoring a message queue for example will also be in MSGW. And I'm pretty sure you don't want to mess with those. So, are you intending to stick with the specific scenario where you know the names of the jobs you'll monitor? Or are you looking for a generic procedure that handle all kinds of MSGW in any future job? They are very different procedures with different complexity. Tom
    125,585 pointsBadges:
    report
  • Midranger
    Previous member makes best suggestion. However you can also create system reply list entries via the WRKRPYLE command and supply default replies to specific message identifiers. You can then change the INQMSGRPY parameter of the submitting job description from *RQD to *SYSRPYL and the system will automatically insert the default reply to the message you defined via the WRKRPYLE command. You can also supply the INqMSGRPY parameter on the SBMJOB command instead of changing the job description. Be cautuious when using reply iist entries as they will be applied to any/all jobs using the *SYSRPYL parameter on job descriptions or submit job commands overrriding the default value. Best practice is to provide job specific comparison data to the reply list entry you create if you don't want the custom supplied reply to be inadvertantly utilized by other jobs using the *SYSRPYL parameter.
    25 pointsBadges:
    report
  • RamvishakRamesh
    Tom, I want my program to handle every job that might go into MSGW status. How to proceed?
    2,505 pointsBadges:
    report
  • TomLiotta
    ...I want my program to handle every job that might go into MSGW status. Please describe what you want to happen when you "handle" the jobs. There can be jobs that you cannot and should not "handle". If a job's normal state is supposed to be MSGW, what do you expect to do about it? 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