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

CLASS parameter oveeride


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

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Wed Jun 18, 2008 9:57 am
Reply with quote

Hi,

My JCL consists of 6 steps.But I have to execute 3 steps by providing a different class parameter.Hence i have to spilt my JCL into 2 JCL's.Is there any way to do this in a single JCL?Is it possible to provide overrides in the step for the CLASS paramete?

Please advise

Regards,
Anu
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 18, 2008 10:00 am
Reply with quote

Hello,

Once a job begins execution, it runs in that class.

What can be gained by separating a job into a second class?

If we understood the requirement (not switching classes, but why), we may be able to offer suggestions.
Back to top
View user's profile Send private message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Wed Jun 18, 2008 10:22 am
Reply with quote

I have to use a different class for executing or compiling DB2 programs.For normal COBOL pgms and other steps it is a different class.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 18, 2008 10:26 am
Reply with quote

Hello,

I suggest you talk with the people who make the rules for your system.

From what you've said, if a job does any db2, the entire job should
run in the "db2 class". If it has no db2, it runs in another class.

Consider a 10 step job that had 4 db2 steps and 6 non-db2 steps and they are interleaved. It makes no sense to try to "dance around" and run that many different jobs to accommodate "class-switching".

In either case, class switching would provide no benefit.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Jun 21, 2008 3:51 pm
Reply with quote

Yip, another case of "Rules is rules, even if they are useless rules".
Back to top
View user's profile Send private message
manojtyagi_09

New User


Joined: 30 Oct 2006
Posts: 10

PostPosted: Thu Jun 26, 2008 1:44 pm
Reply with quote

If you want to execute only the first 3 steps with the CLASS u mentioned. Put a Null statement after the 3rd step. All the below steps will not be executed.
Back to top
View user's profile Send private message
manojtyagi_09

New User


Joined: 30 Oct 2006
Posts: 10

PostPosted: Thu Jun 26, 2008 1:47 pm
Reply with quote

[quote="manojtyagi_09"]

Thinking that you want to execute first 3 steps with CLASS = A and next 3 with CLASS = B.

First Take CLASS = A in job statment and run the first 3 steps using the null statement end the end of 3rd step.

Once done

Change CLASS = B in job stattment take RESTART = Step 4 in your JCL and submit that .

That's it.

But i do not know what is the use of doing such thing.
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

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts building java class with zip4j.jar on... Java & MQSeries 0
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top