Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
VSAM Dataset error, step6 returns condition code 04

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: VSAM Dataset error, step6 returns condition code 04
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    Post subject: Reply to: VSAM Dataset error
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    Post subject: Reply to: VSAM Dataset error, step6 returns condition code 0
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us