IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

If the COND specifed in the JOB statement becomes true


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nitya
Warnings : 2

New User


Joined: 09 Dec 2005
Posts: 17
Location: Tirupathi

PostPosted: Wed Feb 07, 2007 5:51 pm
Reply with quote

If the COND specifed in the JOB statement becomes true for any JOB step, then

a) ALL the subsequent steps of the job are bypassed
b) The JOB abends
c) The COND on the JOB statement is ignored
d) None of the above


can anyone tell me about this??

Regards
Nitya
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Feb 07, 2007 6:34 pm
Reply with quote

You can test this kind of question very simply with code similar to the following, changing the settings and tests accordingly:

//JOBNAME JOB (QQSP0000090,20),ETC.,
// COND=(4,LT)
//*
//IDCAMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 2
//A EXEC PGM=IEFBR14,COND=(0,NE)
//
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Feb 12, 2007 1:34 am
Reply with quote

The ans is "A".
Back to top
View user's profile Send private message
krishna_sureka

New User


Joined: 05 Sep 2006
Posts: 7
Location: Pune

PostPosted: Wed Feb 21, 2007 6:00 pm
Reply with quote

I will go with "D".
The job behaviour will also depend on if there is any COND at subsequent steps. Step level COND will override JOB level condition. Also if there is EVEN or ONLY at subsequent steps, It will decide if the step will be executed or bypassed.
Code:
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Feb 22, 2007 9:57 am
Reply with quote

From the Zos JCL Reference Manual:
Quote:
When a step is bypassed because of a JOB COND parameter, all following steps in the job are bypassed.
Back to top
View user's profile Send private message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Fri Mar 02, 2007 12:05 am
Reply with quote

krishna_sureka wrote:
I will go with "D".
The job behaviour will also depend on if there is any COND at subsequent steps. Step level COND will override JOB level condition. Also if there is EVEN or ONLY at subsequent steps, It will decide if the step will be executed or bypassed.
Code:


Mr. Sureka,
How r u doing?

I think, assuming no step has a COND parameter, it will bypass all the subsequent steps. If any of the step has a COND parameter then what ever you said will work.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Mar 02, 2007 8:25 am
Reply with quote

I give up. icon_rolleyes.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 02, 2007 8:41 am
Reply with quote

Bet that terminal comes with a DWIT key.


Do What I Think. icon_wink.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 02, 2007 8:50 am
Reply with quote

dick scherrer wrote:
DWIT key
icon_question.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Mar 02, 2007 9:27 am
Reply with quote

Gotta scroll down and read it all icon_smile.gif

Quote:
Bet that terminal comes with a DWIT key.


Do What I Think. icon_wink.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
Search our Forums:

Back to Top