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

How to set maxcc to 24 in jcl


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 691
Location: Earth

PostPosted: Thu May 03, 2007 1:06 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu May 03, 2007 2:44 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu May 03, 2007 3:05 pm
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: 691
Location: Earth

PostPosted: Thu May 03, 2007 3:15 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu May 03, 2007 3:19 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu May 03, 2007 3:32 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts IEBCOPY - Not replace a existing PDS ... JCL & VSAM 15
No new posts Trap the jcl error message or maxcc i... CLIST & REXX 5
No new posts Retreiving MAXCC of a Job through REXX JCL & VSAM 14
No new posts IMS DC MFS screen issue, getting Maxc... IMS DB/DC 1
No new posts Retreive return code(Maxcc) of job th... CLIST & REXX 3
Search our Forums:

Back to Top