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
 

 

Need various COND example in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need various COND example in JCL
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    Post subject: Re: i need various COND example in jcl.its urgent.please rep
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    Post subject:
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: 1202
Location: India

PostPosted: Sun Jun 12, 2005 9:18 pm    Post subject:
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    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 how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm
No new posts How to detect the Job COND used tdfs JCL & VSAM 28 Tue Feb 09, 2016 8:34 pm
No new posts Repeating input records for variable ... ksouren007 DFSORT/ICETOOL 1 Fri Jul 31, 2015 4:16 pm


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