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

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?

6 Answers   IBM,


What is DYNAMBR in jcl?

2 Answers   CTS,


What are the default system and catalog libraries in JCL?

2 Answers   Infosys,


how to identify the file used in the JCL is an VSAM file. Just seeing the JCL code how can we track the file as VSAM file?

6 Answers   CSC,


which utility is used to sort a file in jcl?

0 Answers   IBM,






File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3

7 Answers  


in step1 of a jcl,disp=(mod,delete,delete) step02 exec pgm=ccc,cond=(0,le) will step02 be executed? i)never ii)always iii) iv)... i dont remember options

4 Answers   HSBC,


i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl

1 Answers  


How to delete AIX ? i) IEBGENER ii) IDCAMS iii) PURGE iv) All of the above

3 Answers   HSBC,


I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2. How can I use GDG to use it as input file at step2.

3 Answers   Wipro,


wht r different types of sorts ?

1 Answers   L&T,


What is the purpose of dd * statement in jcl?

0 Answers  


Categories