How do You skip a Step In JCL?

Answers were Sorted based on User's Feedback



How do You skip a Step In JCL?..

Answer / rajesh_m13

Using COND operator if the condition is true it does not
execute

Is This Answer Correct ?    28 Yes 2 No

How do You skip a Step In JCL?..

Answer / mohan

we can pass the COND parameter as (0,le) or (4096,ge) to the step which we wann skip from execution.

Is This Answer Correct ?    22 Yes 6 No

How do You skip a Step In JCL?..

Answer / garry

@Kalpana:

Please do not misguide others, there no reverse direction.

SIMPLE RULE : Condition True = Bypass
Condition False = Execute.

Explanation given by you is not correct.
Anyways, thank you for reply.
Any issue or disagree can write to : gmt360@gmail.com
Garry

Is This Answer Correct ?    14 Yes 2 No

How do You skip a Step In JCL?..

Answer / vinay sonar

We can do it using COND parameter put a always true
condition such as

COND=(0,le) or COND=(4095,ge)

Is This Answer Correct ?    8 Yes 3 No

How do You skip a Step In JCL?..

Answer / steve holton

For an unconditional skip step, just remove it completely
from the job stream.

Otherwise, for conditional removal, you can use the COND=
stuff, which I consider to have "reverse logic" also, as
noted by one responder above. I think "reverse" because if
is notmal to think "If the RC is GT 8, SKIP, but the RC and
the "constant" (8, in this case) are backwards, so you have
to say "IF 8 LE RC, then skip to accomplish the same thing.

OR (and I prefer) JCL IF...ELSE ..ENDIF statements, which
uses more straightforward logic, analogous to the
IF/THEN/ELSE logic in programming languages (i.e. IF RC=0
THEN execute to the ELSE or ENDIF, else SKIP TO ELSE or ENDIF.

Is This Answer Correct ?    6 Yes 2 No

How do You skip a Step In JCL?..

Answer / saba

sing inter parameter we can skip the step

Is This Answer Correct ?    5 Yes 2 No

How do You skip a Step In JCL?..

Answer / ramya

Using COND operator if the condition is true it does not
execute

Is This Answer Correct ?    4 Yes 1 No

How do You skip a Step In JCL?..

Answer / rohit thakur

S1 -> p1
s2 -> p2 , cond=(0,le,s1)

Is This Answer Correct ?    2 Yes 1 No

How do You skip a Step In JCL?..

Answer / kalpana dwivedi

It is true that step can be skip using condition parameter
but COND=(0,LE) is not correct, as Cond parameter works on
reverse logic.

It should be COND=(0,GE) or (4096,LE)

That means step will not run if return code of previus step
is Greater than equal to zero or if the condition code of
previous step is less than equal to 4096.

Is This Answer Correct ?    13 Yes 17 No

Post New Answer

More JCL Interview Questions

what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

1 Answers  


wht happens if cond=true ? pls give me with an example ?

2 Answers   Syntel,


how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


how you can access an uncataloged dataset in a JCL?

0 Answers  


I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.and it should not execute 18,19,20 steps??

9 Answers   IBM, Infosys, TCS, Xansa, Xchanging,






hi friends........if u know syntax of IEBEDIT IN JCL

2 Answers  


how to run JCL thru COBOL.

1 Answers   Patni,


There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?

9 Answers   Infosys,


when we use sysprint and sysout statements

3 Answers  


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

0 Answers  


Hi, can we call catalog( say myproc } proc n times in jcl if so how please explain Thanks in advance

2 Answers   Cap Gemini,


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,


Categories