Communications status

5 pts.
Tags:
AS/400
CL
QUSRJOBI
I am trying to retrieve, within a CL program, the information under the WRKJOB command - with OPTION(*CMNSTS) selected. I am successfully using the API QUSRJOBI in a CL program to retrieve information such as Current User but I can't see any reference that looks like the Communication Status panel. I am specifically trying to capture the 'Number of Operations' numbers: Output, Input and Other. This information must be available somewhere but I haven't managed to find it yet! Do you know of another way that I can retrieve this for multiple jobs within a CL program? I am basically looking for movement in these transactions over a set time period to decide if the job is active or not. Thanks - Les Durham

Answer Wiki

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

I am not aware of any programming interface to that information. I believe it would be reasonable for you to submit a Design Change Request¬†asking that a format be added to QUSRJOBI that would provide this information. I wouldn’t hold my breath though on such a change being made as CPI-C and ICF communications has not seen any investment by IBM that is even close to what we’ve seen in sockets over the last several years…

You might be able to infer activity by using QUSRJOBI to examine job statistics such as CPU processing, database activity, etc but it’s certainly possible that your applications might be coded with a timer on communications activity and, when the timer pops, do other work — so this approach is certainly not fool proof.

Bruce Vining

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
  • ToddN2000
    I have not run across anything either. Sorry.  I'd take Bruce's advice about the design change request. Like he said it's not top of IBM's priority list so it may take a while,  if ever. If they get the request from multiple users, then they may take more notice. 
    15,605 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