Best way to monitor a job

765 pts.
Tags:
AS400 admin
AS400 QINTER
MSGW
What is the best way to monitor a job(s) in QINTER for MSGW?
ASKED: January 18, 2011  3:49 PM
UPDATED: January 28, 2011  2:51 PM

Answer Wiki

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

You could use the WRKACTJOB (and SBS parameter if you wish a specific subsystem) and redirect the output to a spool file. Then copy the spool file to a physical file, and then in a RPG program read the spool file just generated and get from it the job information to take an action. The previous steps of course could be in a CL program to do this automatically.

Or, you can take a look at the following link http://forums.systeminetwork.com/isnetforums/showthread.php?p=202516

Regards.

There are third party products and other stuffs available to monitor your system from different purposes. But If you have to just automate monitoring of couple of jobs in a subsystem, the easiest way to do is WRKACTJOb and then scan through the SPOOL file (which is a rude way of doing it). You can achieve the same through APIs which I think will be more dependable. Refer ‘QUSLJOB’ API for your purpose.

Regards

Discuss This Question: 8  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 best way... "Best"? I learned something many years ago -- "We can do it cheap, we can do it fast, and we can do it good. Pick any two." The more you focus on any one area, the more the other areas will suffer. "Best" needs to address elements of all three areas, but how do you want to split them up? What do you mean by "best"? Fewest false positives? Fewest false negatives? Least intrusive? Fastest performance? Easiest creation? Least future maintenance? Who will be coding and maintaining it? (How knowledgeable is that person?) What languages are appropriate? What versions/releases of the OS need to be supported? What are you expecting it actually to do? Should it notify someone, or should it do something about the job? Should it run on demand, or are you wanting it to run at all times automatically? (Should it run if QINTER isn't active? What if a different interactive subsystem is used?) What are you needing the system to do? Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    There are different ways, depending on your OS VRM and other elements. For some background, see iSeries *MSGW error message capture. As noted, it can be a little easier starting with i 6.1. Or you might consider a Management Central 'Job Monitor'. You should be able to select all jobs in subsystem QINTER with a metric of job status 'Waiting for message'. You'd probably need to experiment to get the monitor fine-tuned for what you actually need. Still, "best" might be to purchase some product that does the job. But "best" is hard to pin down from any distance. Make sense? Tom
    125,585 pointsBadges:
    report
  • HMSSL2K
    What not have the MSGW break in QSYSOPR, that way your ops team will notify the correct person to fix the problem.
    3,175 pointsBadges:
    report
  • TomLiotta
    What not have the MSGW break in QSYSOPR... Probably because these are "...job(s) in QINTER". Tom
    125,585 pointsBadges:
    report
  • Jaymz69
    [...] Best way to monitor a job [...]
    0 pointsBadges:
    report
  • Jaymz69
    Yes QINTER Jobs
    765 pointsBadges:
    report
  • Jaymz69
    We have V6r1 now
    765 pointsBadges:
    report
  • Jaymz69
    I use the iseries Navigator now but when the system shutsdown and reboots over the weekend my job never starts back up. I read to add &START in the name but that still did not work.
    765 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