Page 1 of 1

JCL COND=EVEN AND ONLY

PostPosted: Fri Jun 01, 2012 2:45 pm
by muthu455
I want to Know the Use of Even And Only in Cond?.... What is the Use Even And only?....... some one give me the solutions with examples better for me....

Re: JCL COND=EVEN AND ONLY

PostPosted: Fri Jun 01, 2012 3:05 pm
by Akatsukami
muthu455 wrote:I want to Know the Use of Even And Only in Cond?.... What is the Use Even And only?....... some one give me the solutions with examples better for me....

The COND parameter.

Re: JCL COND=EVEN AND ONLY

PostPosted: Fri Jun 01, 2012 3:22 pm
by muthu455
thanks for ur link and can u give me the sample programs with output....

Re: JCL COND=EVEN AND ONLY

PostPosted: Fri Jun 01, 2012 3:47 pm
by NicC
Programs? You are talking JCL not programming languages. Why not knock up a few jobs to tes out what you think you understand? You can use IEFBR14 for steps giving a 0 return code, IDCAMS to set non-zero return codes and a none-existent program (PGM=NOTFOUND is a favourite) for examples with an actual abend.

Re: JCL COND=EVEN AND ONLY

PostPosted: Fri Jun 01, 2012 9:09 pm
by dick scherrer
Hello,

To demonstrate EVEN and ONLY testing, you would need to create a batch process that will abend. There are many easy ways to do this. Force an 0c7 (invalid numeric), or 0cb (divide by zero), or an 013-20 (different blksize between the process and the file).

Then you can run jcl that will run or not run depending on if the job abended or not.

You need to read about EVEN and ONLY in the manual so you will have a clear understanding of how these work. If you find something in the manual that is not clear, post what you found and your doubt. Someone will be able to clarify.

Re: JCL COND=EVEN AND ONLY

PostPosted: Sat Jun 02, 2012 7:28 pm
by Monitor
Why not check out the IF THEN ELSE ENDIF JCL statements at the same time as you read about COND.
This IBM-link might be useful: http://www-03.ibm.com/systems/z/educati ... l#BootCamp