MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set the MAXCC from 1 to 0

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed Sep 17, 2008 11:51 am    Post subject: How to set the MAXCC from 1 to 0 Reply with quote

Hi All,

I am facing problem with my Job today.

Here is my Job.
Code:

//FDM0303A JOB Class=x,msgclass=1,Notify=&SYSUID
//STEP01 EXEC PGM=IDCAMS
//SYSPPRINT DD SYSOUT=*
//FILE01 DD DSN=FILE01,DISP=SHR
//SYSIN DD *
 PRINT INFILE(FILE01) COUNT(1)
/*
//STEP02 EXEC PGM=IDCAMS
//SYSPPRINT DD SYSOUT=*
//FILE01 DD DSN=FILE02,DISP=SHR
//SYSIN DD *
 PRINT INFILE(FILE02) COUNT(1)
/*
//IF (STEP01.RC=0 AND STEP02.RC=0) THEN
//STEP03 EXEC PGM=ISRSUPC
//NEWDD DD DSN=FILE01,DISP=SHR
//OLDDD DD DSN=FILE02,DISP=SHR
//OUTDD DD SYSOUT=*
//SYSIN DD *
CMPLN TOP 1 BTM 5000
/*
// ENDIF
//STEP04 EXEC PGM=DGABEND, <-- USED TO ABORT THE JOB BASED IF TWO ARE IDENTICAL
//         COND=((0,LT,STEP03),(4,EQ,STEP01),(4,EQ,STEP02))
//SYSOUT DD SYSOUT=*
//CESDUMP DD SYSOUT=*
//*
//STEP05 EXEC PGM=IEFBR14
//DD01 DD DSN=FILE03,DISP=(MOD,DELETE,DELETE)
//STEP06 EXEC PGM=IEFBR14,
//            COND=(0,NE)
//DD02 DD DSN=FILE04,DISP=(MOD,DELETE,DELETE)
//STEP07 EXEC PGM=SORT,COND=(0,NE)
//SORTIN DD DSN=FILE01,DISP=SHR
//SORTOUT DD DSN=FILE05,DISP(,CATLG,DLETE),
//       DCB=(DSORG=PS,RECFM=FB,LRECL=1333,BLKSIZE=0)


The above job runs fine whenever there file01 & file02 are identical.But when both files are empty, when any of the file is empty or when the files are non-empty and non-identical the step06 and step07 are flushed because MAXCC in the job will be either 1 or 4.

How to set the MAXCC from 1 or 4 to 0 after step04 and i don't want to change the COND values on step06 & 07 as they are present in doffernt proc. Please help me in this regard.

Thanks,
Siva
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Sep 17, 2008 1:55 pm    Post subject: Reply with quote

IDCAMS command:

SET MAXCC=0
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Thu Sep 18, 2008 3:34 am    Post subject: Reply with quote

Hi Nic,

Thanks for reply.I have tried this but even then the step06 and step07 are flushed.

Thanks,
Siva
Back to top
View user's profile Send private message
hchinnam
Beginner


Joined: 04 Feb 2005
Posts: 31
Topics: 10

PostPosted: Thu Sep 18, 2008 4:05 am    Post subject: Reply with quote

You can't do that.

You can set the condition codes with in the step to what ever you want. But once you move to next step there is no way you are going to reset previous step's cond code.

However if you want to change the MAX-CC to more then the return code of previous step, you can write idcams to set a bigger return code so that it will override the MAX-CC. See the example below

Code:


//ST02 EXEC PGM=IDCAMS       
//SYSPRINT DD SYSOUT=*       
//SYSOUT   DD SYSOUT=*       
//SYSIN    DD *             
  SET MAXCC = 4             
/*                           
//ST02 EXEC PGM=IDCAMS       
//SYSPRINT DD SYSOUT=*       
//SYSOUT   DD SYSOUT=*       
//SYSIN    DD *             
  SET MAXCC = 8             
/*                           
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group