Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to set maxcc to 24 in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
himantgoyal
Warnings : 1

New User


Joined: 14 Aug 2006
Posts: 8

PostPosted: Thu May 03, 2007 12:03 pm    Post subject: How to set maxcc to 24 in jcl
Reply with quote

Can anyone please help to find how to set MAXCC to 24 in jcl . I am getting a RC = for this job . my task is to set the MAXCC to 24 whenever maxcc is between 1 & 19, I have already done this using IDCAMS, but I am asked to find a alternative.
Back to top
View user's profile Send private message

agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Thu May 03, 2007 1:06 pm    Post subject:
Reply with quote

RC or MAXCC? icon_confused.gif
Back to top
View user's profile Send private message
himantgoyal
Warnings : 1

New User


Joined: 14 Aug 2006
Posts: 8

PostPosted: Thu May 03, 2007 1:17 pm    Post subject: Re: How to set maxcc to 24 in jcl
Reply with quote

MAXCC

Can I do it using IF statement in jcl
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 2:44 pm    Post subject:
Reply with quote

Quote:
Can anyone please help to find how to set MAXCC to 24 in jcl . I am getting a RC = for this job . my task is to set the MAXCC to 24 whenever maxcc is between 1 & 19.

Interesting .... I have not been able to use IDCAMS to set a MAXCC above 16. Could you please post your code and results for that one.

Quote:
I have already done this using IDCAMS, but I am asked to find a alternative.

Why the need for an alternative for something that works ?

Dare I ask if this is a HOMEWORK topic.

HAve you tried REXX instead of IDCAMS.
Back to top
View user's profile Send private message
himantgoyal
Warnings : 1

New User


Joined: 14 Aug 2006
Posts: 8

PostPosted: Thu May 03, 2007 3:01 pm    Post subject:
Reply with quote

I am sorry, I didn't specified it clearly.I have done it by introducing a new step in proc,which is executing a cobol code which returns 24 if specified condition is met.But i am not suppose to introduce a new step in proc,modifications are permissible only in jcl & not in proc
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 3:05 pm    Post subject:
Reply with quote

You obviously need to use something other than the standard IBM utilities, as they will only work up to a MAXCC of 16.

REXX like COBOL will do as it's told and go above 16. But it certainly looks like you will need to introduce that extra forbidden step.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Thu May 03, 2007 3:15 pm    Post subject:
Reply with quote

Quote:
I have done it by introducing a new step in proc,which is executing a cobol code which returns 24 if specified condition is met.

If you have done this with a COBOL code, then why not add this code to previous step program? This way you will achieve it in one step.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 3:19 pm    Post subject:
Reply with quote

Quote:
If you have done this with a COBOL code, then why not add this code to previous step program? This way you will achieve it in one step.

I had thought that too, but if the previous CC calls for the amended step NOT to execute, you lose the processing that the skipped step should have done.

As I said above, this does look a bit HOMEWORK to me icon_confused.gif
If it is a requirement to do this logic, then the best available tool should be used regardless of what it is and any other changes entailed.
Back to top
View user's profile Send private message
himantgoyal
Warnings : 1

New User


Joined: 14 Aug 2006
Posts: 8

PostPosted: Thu May 03, 2007 3:23 pm    Post subject:
Reply with quote

I am not suppose to make any changes to proc used by JOB because this particular proc is used by many jobs if I make any changes to this will certainly affect working of other jobs. So I am looking for a solution in which I make changes to JOB only.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 3:32 pm    Post subject:
Reply with quote

Quote:
So I am looking for a solution in which I make changes to JOB only.

Congratulations, you have just answered your own question.

OLD JOB -
//PROCNAME EXEC PROCNAME

NEW JOB -
//PROCNAME EXEC PROCNAME
//MYPROGRM EXEC PGM=MYPROGRM

Or, you could even procedurise the JCL needed to run your program icon_confused.gif
Back to top
View user's profile Send private message
himantgoyal
Warnings : 1

New User


Joined: 14 Aug 2006
Posts: 8

PostPosted: Thu May 03, 2007 4:44 pm    Post subject:
Reply with quote

Thanks a lots finally i got the solution
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Retreiving MAXCC of a Job through REXX prasadchikane JCL & VSAM 14 Tue Feb 18, 2014 4:15 pm
No new posts IMS DC MFS screen issue, getting Maxc... chandru1980 IMS DB/DC 1 Fri Feb 01, 2013 8:02 pm
No new posts Retreive return code(Maxcc) of job th... balaji81_k CLIST & REXX 3 Fri Dec 28, 2012 1:29 pm
No new posts MAXCC 64 in JCLCHK surupab JCL & VSAM 7 Tue Aug 14, 2012 11:36 pm
No new posts JCL error: Job not giving MAXCC and j... chhabraravneet IMS DB/DC 2 Wed Feb 22, 2012 10:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us