Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

If the COND specifed in the JOB statement becomes true

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: If the COND specifed in the JOB statement becomes true
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

Active Member


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

PostPosted: Wed Feb 07, 2007 6:34 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Fri Mar 02, 2007 8:41 am    Post subject:
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: 3158
Location: Tucson AZ

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

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

Site Director


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

PostPosted: Fri Mar 02, 2007 9:27 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us