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

Need various COND example in JCL


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

New User


Joined: 12 Jun 2005
Posts: 1

PostPosted: Sun Jun 12, 2005 2:34 pm
Reply with quote

Hi i am vinooth. i need various COND example in jcl.because EDS ll ask only COND in jcl.somewat i know.but it is not enough.please send examples to my mail id.

e-mail: ***EMail ID REMOVED... Use CODE tag to include mail id***

Thank you...

vinooth.v
Back to top
View user's profile Send private message
durga_prasad

New User


Joined: 17 May 2005
Posts: 7
Location: Melbourne

PostPosted: Sun Jun 12, 2005 5:16 pm
Reply with quote

vinooth wrote:
Hi i am vinooth. i need various COND example in jcl.because EDS ll ask only COND in jcl.somewat i know.but it is not enough.
vinooth.v


Hi
Here it is with example:

Use the COND parameter to test return codes from previous job steps and determine whether to bypass this job step

If any of the test conditions are satisfied, the system evaluates the COND parameter as true and bypasses the job step. If none of the test conditions specified on the COND parameter are satisfied, the system evaluates the COND parameter as false and executes the job step

Example 1

//STEP6 EXEC PGM=DISKUTIL,COND=(4,GT,STEP3)

In this example, if the return code from STEP3 is 0 through 3, the system bypasses STEP6. If the return code is 4 or greater, the system executes STEP6. Because neither EVEN nor ONLY is specified, the system does not execute this step if a preceding step abnormally terminates.

Example 2
//TEST2 EXEC PGM=DUMPINT,COND=((16,GE),(90,LE,STEP1),ONLY)
The system executes this step ONLY if two conditions are met:

A preceding job step abnormally terminated.
No return code tests are satisfied.

Therefore, the system executes this step only when all three of the following are true:

A preceding job step abnormally terminated.
The return codes from all preceding steps are 17 or greater.
The return code from STEP1 is 89 or less.

The system bypasses this step if any one of the following is true:

All preceding job steps terminated normally.
The return code from any preceding step is 0 through 16.
The return code from STEP1 is 90 or greater.

For more refer Manuals of JCL - Reference : http://publibz.boulder.ibm.com
Back to top
View user's profile Send private message
prashu

New User


Joined: 12 Jun 2005
Posts: 7
Location: hyderabad

PostPosted: Sun Jun 12, 2005 9:12 pm
Reply with quote

hi,all

any one please help me.

1. in my job there are 10 steps.i want to to execute 4 th step only with out excution of first 3 steps and without execution of 5 th to 10 th.
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1210
Location: India

PostPosted: Sun Jun 12, 2005 9:18 pm
Reply with quote

Dear Prashu,

Please start a new Topic to ask your queries...
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
No new posts INCLUDE COND with WHEN=GROUP SYNCSORT 12
Search our Forums:

Back to Top