wt will happen to the step of a job if u code COND=ONLY
Answers were Sorted based on User's Feedback
//s1 exec pgm=ex1
//s2 exec pgm=ex2
//s3 exec pgm=ex3,cond=only
//s4 exec pgm=ex4
1) if s1 executes sucess, s2 got abend ,then executes s3.and
stops execution
2) if s1 got abend, s2 dont executes ,then s3 executes.and
stops execution
3) if s1 executes sucess ,s2 executes sucess,then s3 wont
executes. and go to s4.....
if any wrong in my answer plz correct me..
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / suman
It is to execute subsequent activity when previous activity
terminated abnormally(unsucessfully).
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vinay sonar
//STEP2 DD PGM=IEBGENER,COND=ONLY
it means execute that step only if previous step abends
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rahaman
that step cond=only wil be executed only when the about step fails or shows an abend.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sdexcellent@yahoo.co.in
if COND=ONLY then the next step will be executed only when
the previous step is not executed
Is This Answer Correct ? | 1 Yes | 3 No |
SORT card to eliminate duplicity.
How to pass values in jcl to cobol?
What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?
how to code instream data in procedure?
There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.
i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Can we give TIME = (1440, 59) also ? or is TIME = (1439, 59) is the last one ?
How can the attributes of one sms dataset be copied to another dataset?
what are the ways of passing data to a cobol program from jcl?
i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl
A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?