View previous topic :: View next topic
|
Author |
Message |
himantgoyal Warnings : 1 New User
Joined: 14 Aug 2006 Posts: 8
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
RC or MAXCC? |
|
Back to top |
|
|
himantgoyal Warnings : 1 New User
Joined: 14 Aug 2006 Posts: 8
|
|
|
|
MAXCC
Can I do it using IF statement in jcl |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
himantgoyal Warnings : 1 New User
Joined: 14 Aug 2006 Posts: 8
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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
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 |
|
|
himantgoyal Warnings : 1 New User
Joined: 14 Aug 2006 Posts: 8
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
himantgoyal Warnings : 1 New User
Joined: 14 Aug 2006 Posts: 8
|
|
|
|
Thanks a lots finally i got the solution |
|
Back to top |
|
|
|