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
 

 

regarding jcl condition codes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
remya nair

New User


Joined: 18 Jan 2006
Posts: 5

PostPosted: Sat Feb 25, 2006 11:33 am    Post subject: regarding jcl condition codes
Reply with quote

hi,
i posted this topic once before. i got 1 reply also , but i don't find it as useful. please anyone can forward some useful materials for condition code(importance....) with some suitable examples if possible.
Back to top
View user's profile Send private message

antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Sat Feb 25, 2006 1:15 pm    Post subject:
Reply with quote

Each step sends an a return code to the system upon completion. This is called condition code. COND parameter is used to control the execution of subsequent job steps, depending on the condition code that is returned for prior step.

Return code number between 0 and 4095


Syntax :

COND=(comparsion-code,condition)
(If coded on job)

COND=(comparsion-code,condition [,stepname] [,EVEN / ONLY])
(If coded on step)

condition can be GT,GE,LT,LE,EQ,NE


Example 1: COND coded on JOB

//JOBNAME JOB (XXXX),'anton rino'
// COND=(4,GT)
//STEP1 EXEC PGM=PROG1
//STEP2 EXEC PGM=PROG2

In this example we are specifing that if the number
4 is greater than the return code of STEP1, then STEP2
is to be bypassed.

Example 2: COND coded on EXEC statement

//JOBNAME JOB (XXXX),'ANTON RINO'
//STEP1 EXEC PGM=PROG1
//STEP2 EXEC PGM=PROG2,
// COND=(8,EQ,STEP1)
//

In this example the COND parameter is used to specify that STEP2 should be by passed if 8 is equal to the return code issued by STEP1.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Feb 25, 2006 9:29 pm    Post subject:
Reply with quote

Hi Remya,

Why don't you click "manuals" at the top left side of this screen? Scroll down to the JCL Manuals, look in the index under "COND" or "condition codes" and read.

Let us know if you're having problems navigating, or any others, for that matter.
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 Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am
No new posts File matching using specific condition mf_karthik DFSORT/ICETOOL 3 Fri Nov 20, 2015 11:04 pm


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