Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
CLASS parameter oveeride

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Wed Jun 18, 2008 9:57 am    Post subject: CLASS parameter oveeride
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
References
PostPosted: Wed Jun 18, 2008 9:57 am    Post subject: Re: CLASS parameter oveeride Reply with quote

dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 7505
Location: 221 B Baker St

PostPosted: Wed Jun 18, 2008 10:00 am    Post subject:
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    Post subject: Reply to: CLASS parameter oveeride
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

Global Moderator


Joined: 23 Nov 2006
Posts: 7505
Location: 221 B Baker St

PostPosted: Wed Jun 18, 2008 10:26 am    Post subject:
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: 2953
Location: Brussels once more ...

PostPosted: Sat Jun 21, 2008 3:51 pm    Post subject:
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: 8

PostPosted: Thu Jun 26, 2008 1:44 pm    Post subject:
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: 8

PostPosted: Thu Jun 26, 2008 1:47 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1