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

JCL interview questions


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Mon May 22, 2006 11:23 am
Reply with quote

Hi All,

Let's say we have a catalogue procedure contains 50 number of steps to execute. I just want to apply a single condition which should apply for all the steps involved in that catalogue procedure.

Is this possible, If so HOW?

what will be result of the following coding?

//step1 exec pgm=file1,disp=shr
//step1 exec pgm=file2,disp=shr

Bye!!
Back to top
View user's profile Send private message
chanda.debasish

New User


Joined: 19 Sep 2005
Posts: 9

PostPosted: Mon May 22, 2006 3:13 pm
Reply with quote

In the job card you need to code
cond=(0,lt)
This cond will be aplied to all the steps.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed May 24, 2006 6:53 am
Reply with quote

1) You code any cond stmt you need in the job stmt and it will be available for execution in every step of the job.

2) JCL error.
Back to top
View user's profile Send private message
Mr.Niceguy

New User


Joined: 16 Jun 2005
Posts: 63

PostPosted: Wed May 24, 2006 12:07 pm
Reply with quote

Hi all,

Thanks for your suggestion. But will it be applicable for the following question.

Let's us say this is a mainJCL where it is calling a procedure which kept as a member in same PDS.
//JOBNAME JOBCARD
//STEP1 EXEC PROC1.
//DD1 DD DSN=....
//



//PROC1 PROC
//STEP1 EXEC PGM=FILE1
//DD1 DD DSN=...
//STEP2 EXEC PGM=FILE2
//DD2 DD DSN=...
//STEP3 EXEC PGM=FILE3
//DD3 DD DSN=....
//

Here I want to apply a condition in main JCL which should be applicable for all the steps in procedure.

Is this Possible?


BYE
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu May 25, 2006 4:28 am
Reply with quote

Hi MNG,

You showed:
Quote:
//JOBNAME JOBCARD
//STEP1 EXEC PROC1.
//DD1 DD DSN=....
//


Why the //DD1? I assume it's a typo.

If you code:

//JOBNAME JOBCARD,COND=(4,LE)
//STEP1 EXEC PROC1

If any step issues a RC of 4 or more, none of the remaining steps will execute.
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 Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts The Last Two Question For You To Ask ... Mainframe Interview Questions 0
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
Search our Forums:

Back to Top