5 pts.
 Communications status
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

Software/Hardware used:
ASKED: April 30, 2008  9:30 AM
UPDATED: May 2, 2008  9:53 AM

Answer Wiki:
I am not aware of any programming interface to that information. I believe it would be reasonable for you to submit a <a href="http://www-912.ibm.com/s_dir/slkbase.NSF/1ac66549a21402188625680b0002037e/a280079bd322cfc686256ef3006d5604?OpenDocument">Design Change Request</a> 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 <a href="http://www.brucevining.com/">http://www.brucevining.com/</a>
Last Wiki Answer Submitted:  May 2, 2008  9:53 am  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _