Can we track if max active thread number in AS/400 has been changed by a user via journal receiver

1160 pts.
Tags:
AS/400
AS/400 journaling
System i
Can we track if max active thread number has been changed by a user via journal receiver using dspaudjrne

Software/Hardware used:
as400, system i

Answer Wiki

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

I assume you mean the MAXTHD() attribute of a class.

If you have proper auditing enabled, you should see a ZC entry for the class object that was changed.

Tom

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
  • JohnsonMumbai
    What would the object name be that needs to be tracked?
    1,160 pointsBadges:
    report
  • TomLiotta
    What would the object name be that needs to be tracked? If it's a class object that you're after, then it would be whichever one is involved in the jobs that are showing higher thread counts. A "class" in this case is associated with a job through the routing entry (or prestart job entry) through which the job entered the subsystem. Maybe the easiest way to track it down is to run the WRKSBS command. By itself, it will bring it a list of subsystems that are active on your system. Take option 5 against the appropriate subsystem, then review the routing entries (or prestart job entries) to learn which class objects are involved. If this is not the 'maximum active threads' that you mean, please give a more detailed description. There are some basic C macros in QSYSINC, for example, that provide potential application controls for maximum threads. But those are more for guidelines, POSIX compliance, etc. Those are always under application control, AFAIK, so don't seem to be what you're after. Tom
    125,585 pointsBadges:
    report
  • JohnsonMumbai
    Hi Tom, We have as part of our End of day activity submission of multithread jobs. This iam told can be efficiently managed if we can alter the max active threads entered against a sharedpool in the WRKSYSSTS command. The idea is to check if this has been changed before and after completion of the multithread jobs.
    1,160 pointsBadges:
    report
  • TomLiotta
    You should consider this sequence:
    1. Create a class. Use the CRTCLS command to create a class with the threading attributes that you desire.
    2. Add arouting entry to your subsystem. Use the ADDRTGE RTGDTA(yourRoutingData) CLS(yournewclass) command to add a routing entry that cause jobs that start through it to use your new class.
    3. Change your job description. Use CHGJOBD RTGDTA(yourRoutingData) to cause jobs using this job description to be selected by your new routing entry.
    You choose the name for your new class and set its maximum threads to be whatever you want, up to the maximum allowed by the system. You then make a small change to the subsystem that processes the jobs that you're interested in; the new routing entry will make the new class active only for the jobs that get selected by the routing entry. You then change the job description that you use for those jobs so that only those jobs get selected to run under the new class. You can copy an existing class with CRTDUPOBJ and then customize the new one with CHGCLS. You can review any existing routing entry through the WRKSBS command and displaying the subsystem routing entries. There will already be a routing entry that is in control of your jobs; the new one that you add will have a different sequence number, a different class and different routing data. Until you actually submit a job with matching routing data, the new class and routing entry won't affect anything. You can test all you want simply submitting test jobs using the new routing data. You might submit a simple CL command that just does a DLYJOB 60 to see if it goes through the new routing entry. You can specify routing dta directly on a SBMJOB command while testing. Tom
    125,585 pointsBadges:
    report
  • JohnsonMumbai
    Thanks Tom for the detailed update, would certainly use your knowledge when we have a scenario in which i can implement it. However currently i would only like to know if there is a way by which i could track if the max active thread parameter in the WRKSYSSTS command has been updated before and after the running of the Multithreaded batch job.
    1,160 pointsBadges:
    report
  • JohnsonMumbai
    Got it in the dsplog. Following command gives me details of change done in sharepool. DSPLOG MSGID(CPC1135)
    1,160 pointsBadges:
    report
  • TomLiotta
    ...max active thread parameter in the WRKSYSSTS command... and DSPLOG MSGID(CPC1135) Sorry; there was a miscommunication. WRKSYSSTS doesn't exactly change the "maximum active threads". What it changes is the "activity level" which isn't exactly the same thing, though there is a close and direct relationship. I apologize for the confusion. The terminology was misleading because of historical reasons. Note that WRKSYSSTS should be a highly restricted command. It should only be available to actual system administrators. Everyone else should use DSPSYSSTS. And even administrators should use DSPSYSSTS to avoid accidental changes unless a change is intended. Finally, I have not found any audit journal entry that records WRKSYSSTS activity level changes. So far, it looks like the history log is the only place. Be aware that any program can send CPC1135 to the history log, thereby making it appear to have changed. Tom
    125,585 pointsBadges:
    report
  • JohnsonMumbai
    Thanks Tom for the update, yes the wrksyssts is used by sysadmin only, also must inform that changing the activity level has greatly reduced the page faults experienced in user pool.Which we observed when using the i series navigator monitor. However it would be great if this could be automated. As we are currently following a manual process, wherein the monitor alerts us, then we do the calculation in excel and change the values on iseries, is there anyway by which this can be automated.
    1,160 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