Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
COBOL MVS options

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: COBOL MVS options
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?

http://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: 8410
Location: Dubuque, Iowa, USA

PostPosted: Fri Apr 06, 2018 1:49 am    Post subject:
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: 682
Location: The Universe

PostPosted: Fri Apr 06, 2018 8:37 am    Post subject:
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    Post subject:
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: 2126
Location: UK

PostPosted: Sat Apr 07, 2018 2:16 am    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 2064
Location: NY,USA

PostPosted: Sat Apr 07, 2018 2:41 am    Post subject:
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

Senior Member


Joined: 14 Mar 2007
Posts: 10543
Location: italy

PostPosted: Sat Apr 07, 2018 3:11 am    Post subject: Reply to: COBOL MVS options
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: 8410
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 07, 2018 3:20 am    Post subject: Reply to: COBOL MVS options
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    Post subject: Reply to: COBOL MVS options
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL D2 program execution without us... dipsybaby DB2 3 Mon Dec 10, 2018 2:08 pm
No new posts calling java code(on mainframe from c... elixir1986 COBOL Programming 1 Fri Nov 30, 2018 1:57 am
No new posts COBOL file declaration jithinraghavan COBOL Programming 2 Fri Nov 16, 2018 10:54 pm
No new posts Accessing control blocks to retrieve ... menonkiran COBOL Programming 5 Wed Nov 14, 2018 9:08 pm
No new posts how to use RDZ for converting cobol c... balajiChid CICS 1 Tue Oct 09, 2018 8:40 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us