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
 

 

JCL interview questions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: JCL interview questions
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    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 The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm


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