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

How to change the JOB class, when the job is running inspool


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 3:54 pm
Reply with quote

I submitted a unload job with the class L, the thing is i should have submitted it in class H. Currently the job happens to be running in spool. How to change the job class from L to H without canceling the JOB and restarting it from the beginning.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Aug 12, 2008 3:59 pm
Reply with quote

Hi,

cannot be done , why do you want to change the class ?


Gerry
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Aug 12, 2008 4:01 pm
Reply with quote

sushanth,

Quote:
How to change the job class from L to H without canceling the JOB


Once the job gets submitted, it runs in that CLASS and hence cannot be changed.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 4:13 pm
Reply with quote

Oh! I asked this question because.
I have read it in SDSF Overview PDF document. But, that document did'nt give any command or anything regarding how to do it.

Following points, I copy & pasted from SDSF Overview.

Manage work productively With SDSF commands and action characters, you can:
    Cancel, hold or release jobs
    Find out if jobs are waiting to be processed
    Filter the jobs to show just the jobs that interest you
    View output before it is printed
    Change a job's priority, class, or destination
    Edit and resubmit the JCL without leaving SDSF


I am asking this because the job which, i have submitted unloads from 197 tables. Which is at low class priority, i want to change it high. That's it.

Thanks,
Sushanth
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 12, 2008 4:21 pm
Reply with quote

Hi,

Not sure, if I'm again stuck up in Local commands... icon_neutral.gif . At my shop, when the JOB is completed & 'resting' in S.ST & I want to move it to some other class, I put "H" (Hold ?) on command prompt & press enter. And now, I can change the "DEST" (destination) parameter along with "C" (class) parameter.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 12, 2008 4:22 pm
Reply with quote

You could always change the DP to a higher value if the job is running, but you would need to find out what to change it to from your sysprogs or preformance and capacity people.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 4:40 pm
Reply with quote

I am not understand the terms,

Quote:
You could always change the DP to a higher value if the job is running, but you would need to find out what to change it to from your sysprogs or preformance and capacity people.


How can i do it ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 12, 2008 4:45 pm
Reply with quote

Dispatch Priority - a site specific setting that enables jobs running with a certain DP to get priority for access to resources over other jobs.

Usually a site will have one set up for 'Hot Batch'
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Aug 12, 2008 4:47 pm
Reply with quote

Anuj,

Quote:
I want to move it to some other class, I put "H" (history) on command prompt & press enter


I guess "H" is for "HOLD" and not "HISTORY" . Am I wrong?
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 4:51 pm
Reply with quote

In my SDSF,

C - Cancel
H - Hold
P - Purge
S - Select & View
? - You can see the SYSOUT & message & S to selectively View.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 12, 2008 4:59 pm
Reply with quote

Hi Aaru,

Yeah, 'H' is for Held output queue, I was using other Spooling software (JHS- Job History Subsystem) when I posted it.. icon_redface.gif

PS.:Request - Can any one of the Moderators please edit my previous post, where I used Histroy...

OK, changed
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Aug 12, 2008 5:13 pm
Reply with quote

Hi,
we usually change SrvClass (Service class name) to a higher performace class.


Gerrt
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 5:28 pm
Reply with quote

When i submitted my job, this is my jobcard

//CLOUDDB6 JOB (T,'UNFASTLOAD'),'CLOUDATAC',CLASS=L,MSGCLASS=X,
// REGION=0M,NOTIFY=&SYSUID

Actually i should have submitted with

//CLOUDDB6 JOB (T,'UNFASTLOAD'),'CLOUDATAC',CLASS=H,MSGCLASS=X,
// REGION=0M,NOTIFY=&SYSUID

Since the job is in SPOOL running.
I read in SDSF overview that CLASS can be changed. I just wanted to know how to do it.

Quote:
change SrvClass (Service class name) to a higher performace class

I am assuming SERVICE CLASS is different from the class i have specified in the JCL.
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: Tue Aug 12, 2008 5:35 pm
Reply with quote

Quote:
Since the job is in SPOOL running.
I read in SDSF overview that CLASS can be changed. I just wanted to know how to do it.
And you're making an erroneous assumption. You're assuming the CLASS you can change is the job class the job runs in; it's not. The CLASS you can change is the sysout class (MSGCLASS= parameter on the JOB card). You cannot change the CLASS= parameter of a batch job once it's running. SERVICE CLASS is the Workload Manager class used for your job; this can be changed dynamically and affects the resources your job uses.

To do what you want, cancel the job in CLASS=L and resubmit with CLASS=H in the JOB card.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 12, 2008 5:45 pm
Reply with quote

Hi,
Robert Sample wrote:
To do what you want, cancel the job in CLASS=L and resubmit with CLASS=H in the JOB card.
Robert does that mean that using "H (Hold, posted in my previous post)" is site specific..?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 12, 2008 5:49 pm
Reply with quote

Quote:
PS.:Request - Can any one of the Moderators please edit my previous post, where I used Histroy...


Anuj
Your error is history icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 12, 2008 5:53 pm
Reply with quote

expat wrote:
Your error is history icon_lol.gif
When such a Mentor is with me I'll leave many more errors away as history..

Thanks for the correction.. icon_smile.gif
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 5:55 pm
Reply with quote

Thank You Robert for clearing the CLASS out. So you are saying that i can the MSGCLASS. Just for informational purpose can you tell how to do that.
&
Quote:
SERVICE CLASS is the Workload Manager class used for your job; this can be changed dynamically and affects the resources your job uses.

I am thinkin so, Workload Manager will be having the list of all classes and how much of CPU time they should consume. So if, change is made in the Workload Manager Class for this CLASS=L to take more CPU time and get the job done quickly. Afterwards, I hope the change made in the Workload Manager will also affect all the jobs that are running in CLASS=L(if the change is made).

Robert my thinkin is correct or not.
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: Tue Aug 12, 2008 5:55 pm
Reply with quote

Quote:
Robert does that mean that using "H (Hold, posted in my previous post)" is site specific..?
No, but it's application-specific. For example, we use (E)JES at our shop and the H line command on a job says to put it into Operator Hold, which means an operator must explicitly release the job before it will run. Different application, different meaning.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 12, 2008 5:55 pm
Reply with quote

[quote="Anuj D."]
expat wrote:
such a Mentor is with me I'll leave many more errors away as history..

icon_redface.gif Stop it, you are making me blush icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 12, 2008 6:02 pm
Reply with quote

Robert Sample wrote:
Different application, different meaning.
Yeah agreed and thread specifically talks about SDSF since start, unless I'm missing soething, so "H" could have worked...not sure if TS has tried it..
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: Tue Aug 12, 2008 6:04 pm
Reply with quote

sushanth bobby:
Quote:
So you are saying that i can the MSGCLASS. Just for informational purpose can you tell how to do that.
Actually, I can't tell you because the only spool management package I've got access to is (E)JES and the commands are different for each package.

Also, there's a manual on Workload Manager in the MVS bookshelf. It tells a lot about how WLM works. Basically, WLM doesn't care about individual job classes; it works with service classes. Multiple job classes can be rolled into a single service class. WLM is concerned with started tasks, CICS regions, batch jobs, TSO users, OMVS processes, and so forth -- in other words it manages the ENTIRE workload of the system. WLM has assigned goals for each service class and it attempts to meet these goals (for example, a service class goal might be to run for 25% of the CPU while it's running; or perhaps complete 90% of TSO commands in 2 minutes) by adjusting workload priorities.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 12, 2008 6:10 pm
Reply with quote

expat wrote:
icon_redface.gif Stop it, you are making me blush icon_lol.gif
Nah..I'll not, You and many more are there in this Forum..who I respect a lot.

I remember when once I asked Frank, "how do you know this much about ICETOOL & DFSORT"..

his answer was.."I've invented the ICETOOL"..

I remember.. that whole week I was not able to sleep because of excess excitement inside my blood... I still feel that.. icon_smile.gif

Once again, Thanks for being here..
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Tue Aug 12, 2008 6:24 pm
Reply with quote

Thank You Very Much Robert.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Aug 12, 2008 6:52 pm
Reply with quote

sushanth bobby,

this thread went in many directions. are your questions answered?

If permitted by SDSF security, for submitted jobs you can:
1. change JOBCLASS only before execution begins
2. change MSGCLASS (sysout class of output on spool) only after execution completes
3. change WLM service class during execution to adjust performance
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 -> JCL & VSAM Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts building java class with zip4j.jar on... Java & MQSeries 0
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top