Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 356
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us