View previous topic :: View next topic
|
Author |
Message |
Anu R
New User
Joined: 09 Apr 2008 Posts: 18 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anu R
New User
Joined: 09 Apr 2008 Posts: 18 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yip, another case of "Rules is rules, even if they are useless rules". |
|
Back to top |
|
|
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
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 |
|
|
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
[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 |
|
|
|