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

VSAM Dataset error, step6 returns condition code 04


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Fri Oct 12, 2007 2:12 pm
Reply with quote

Hi,
Here is my JCL
Code:
//STEP5   EXEC=............                           
//STEP6    EXEC PROGRAM1                               
//G.OUTPUT  DD DSN=OUTPUT.FILE,DISP=(MOD,CATLG,DELETE),
//            SPACE=(133,(1,1),RLSE),AVGREC=K,         
//            RECFM=FBA,LRECL=133,                     
//            DSORG=PS                                 
//G.INPUTF  DD DSN=VSAM.FILE1,DISP=SHR                 
//*                                                   
//STEP7  EXEC=.......                                 
//STEP8  EXEC=.......                                 
//STEP12   EXEC PGM=IDCAMS,                           
//            COND=(4,LT,STEP6.G)                     
//EMPTYFIL DD DUMMY                                   
//SYSIN    DD *                                       
     REPRO IFILE(EMPTYFIL) -                           
           OFILE(FORMAT) REUSE                         
/*                                                     
//FORMAT   DD DSN=VSAM.FILE1,DISP=SHR                 
//SYSOUT   DD SYSOUT=*                                 
//*   
//STEP13  EXEC PGM=IDCAMS,                           
//            COND=(0,LT)                                                 


My problem is even step6 returns condition code 04, steps 12 and 13 should execute.Here only STEP12 is executing, not STEP13.See the message below.
Code:

STEP13 - STEP WAS NOT RUN BECAUSE OF CONDITION CODES   
STEP13 - STEP WAS NOT EXECUTED.                       

can any one help me.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Fri Oct 12, 2007 2:25 pm
Reply with quote

You have mentioned COND=(0,LT) in STEP13, means if Condition code of any of the previous steps is greater than '0', step 13 won't get executed.

STEP6 is givign Condition Code '4', so giving error. You either mention the STEPNAME in your above condition code against which step u want to check as u have mentioned in STEP12 or use some other Return Code to check the Conditon.

FYI, below is the brief description of Condtion parameter.


COND=(m,operator)
(m,operator,stepname)
ONLY
EVEN

used to conditionally execute a step

m return code to be used in comparison
0 step ran successfully
4 warning
8 an error exists (probable ABEND)
12 a serious error
16 a severe error

operator type of comparison to make
GT greater than
GE greater than or equal to
LT less than
LE less than or equal to
EQ equal to
NE not equal to

stepname name of the step whose return code is to
be used in the comparison (if stepname is not
used, the comparison is made to all preceding
return codes from all the preceding steps).

ONLY the step is executed ONLY if the previous step
ABENDed

EVEN the step is executed EVEN if the previous step
ABENDed


KSK
Back to top
View user's profile Send private message
santhoshm

New User


Joined: 13 Jun 2007
Posts: 32
Location: chennai

PostPosted: Fri Oct 12, 2007 2:34 pm
Reply with quote

Thanks,
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top