COND at first step of Job.

JES2/3, JCL, utilities.
Post Reply
Priya
Registered Member
Posts: 50
Joined: Tue Jul 02, 2013 11:43 pm

COND at first step of Job.

Post by Priya »

Hi.

Is not it line COND at first step of Job will always be false? And the step will always get executed, right?

I ask this because I saw a job which has got COND=(4,LT) at first step since 1995. This is rather misleading. Is my understanding correct?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: COND at first step of Job.

Post by Robert Sample »

From the MVS JCL Reference manual:
Location in the JCL
You can specify the COND parameter on any EXEC statement in the job. However, the system evaluates a COND parameter on the first EXEC statement in a job as false.
COND evaluated as FALSE means that the step is going to get executed. While it is slightly misleading to have COND on the first step, it could be that the COND is a relic from an earlier iteration of the JCL that had steps executed before what is now the first step. Or, the site standard is to place a COND on every EXEC. Whatever the reason, there's no problem with the coding of COND on the first step of a job.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”