IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL MVS options


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
BiswajitDG

New User


Joined: 06 Apr 2018
Posts: 3
Location: USA

PostPosted: Fri Apr 06, 2018 12:35 am
Reply with quote

We have a work in progress and as part of that we need to auto assign priority to access certain resource based on the class of the job that is running our cobol. Could not find class of the running job from the MVS control blocks. Is there any other way to do this or is this hidden somewhere in MVS blocks?

documentation.microfocus.com/help/index.jsp?topic=%2Fcom.microfocus.eclipse.infocenter.studee60ux%2FHCOMCMCBLKS005.html
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 06, 2018 1:49 am
Reply with quote

Is your site JES2 or JES3? This would impact the control blocks you need to review.

Does your site use JES-managed initiators or WLM-managed initiators? If your site uses WLM-managed initiators, then you CANNOT auto assign priority -- WLM will run jobs based on their service class.

This is the type of question you REALLY need to be asking your site support group since we don't work at your site and have no idea how it is set up.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Apr 06, 2018 8:37 am
Reply with quote

As one level, Mr. Sample is correct, but he is simplifying the situation.

In MVS, there are three priorities
  1. A JES related workload selection priority.
  2. In MVS, an address space related selection priority that determines when an address space is selected for execution, relative to other address spaces.
  3. In MVS, when multiple tasks are running within an address space, a priority that determines the order in which the task is selected.
Once a job starts executing, the first priority cannot be altered. It's too late, anyway. In any event MVS workload management has pretty much taken over this task.

The second priority is pretty much determined by MVS workload management. A user job cannot alter or influence the priority. I don't really know if a user job can even determine what it is. MVS workload management attempts to maximize system operation based on rules defined by the system programmers. Roughly 30 years ago, IBM decided
  • The system programmers were mostly incompetent to do this. I'm not sure I disagree.
  • System activity changes too quickly for human intervention to make much difference. A human must determine there is a problem, figure out what can be done to correct the problem, and (hopefully) correct the problem. Here I agree.
In response, IBM built the present workload manager.

The third priority can be influenced by the user program. The only time this matters is when when the program is operating subtasks. In 50 years I've only tried this once, and I never knew if it mattered. I ran several subtasks. Most of the time each subtask was I/O bound, but there were periods when it was CPU intensive. Just before a subtask went CPU bound I dropped its relative priority, and raised it when it went I/O bound again. Like I said, I never knew if it really helped.
Back to top
View user's profile Send private message
BiswajitDG

New User


Joined: 06 Apr 2018
Posts: 3
Location: USA

PostPosted: Fri Apr 06, 2018 7:07 pm
Reply with quote

Understood. Thank you Steve and Bob. Will follow up with our site people.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Apr 07, 2018 2:16 am
Reply with quote

Quote:
Bob

who is this 'Bob'? show some respect and call them by the name that they use themselves.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Sat Apr 07, 2018 2:41 am
Reply with quote

I have seen "Mr. Robert Sample "referred to as "Bob" in this week another post and in past as well. People have created their own alias.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Apr 07, 2018 3:11 am
Reply with quote

Quote:
I have seen "Mr. Robert Sample "referred to as "Bob" in this week another post and in past as well.


You should also have seen that Robert corrected the poster

and Robert IIRC always confirmed his dislike for being addressed as Bob
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 07, 2018 3:20 am
Reply with quote

Yes, I correct people calling me "Bob" -- my name is Robert. My father's name was "Bob" but he is not I and I am not him.
Back to top
View user's profile Send private message
BiswajitDG

New User


Joined: 06 Apr 2018
Posts: 3
Location: USA

PostPosted: Mon Apr 09, 2018 11:22 pm
Reply with quote

Robert - Apologies and will address you by your first name going forward.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top