CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MAINFRAME JCL DETAILS
Question :
Describe the EXEC statement, its meaning, syntax and keywords.


Category JCL Interview Questions
Rating (4.5) By 12 users
Added on 7/22/2006
Views 986
Rate it!
Answers:

The EXEC statement is given when we want to execute a particular program

The EXEC statement should be followed by the program name

eg : EXEC program1

Here, program1 is the name of the program



EXEC statement is used to execute a program/procedure.
syntax:
//stepname EXEC <positional>,
<keyword>
step name:
-> optional but recommended
-> must be unique in the job
positional parameter can be any one of the following:
PGM=program name
PROC=procedure name
eg: //step1 EXEC PGM=IEBGENER
//step2 EXEC PROC=P1
keyword parameters used in EXEC statement are:
1.PARM : PARM parameter is used to pass information to program.
PARM=value
value is a string whose length varies from 1 to 100 character
2.COND : COND parameter is used to control the job step execution.It allows execution of one step depending on the retun code of previous step.
COND=(comparsion-code,condition,
stepname)




 Posted by: sindhu    

Contact sindhu  Contact sindhu


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is the meaning of keyword in JCL? What is its opposite?

View Answer
What are the kinds of job control statements?

View Answer
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.

View Answer
Describe the JOB statement, its meaning, syntax and significant keywords.

View Answer
How will you call the return code of JCL ?

View Answer
How can be determined if date contained in the header of a file is date current date?



View Answer
What is the difference between BLKSIZE and LRECL?

View Answer
How to by pass the step without cond parameter

View Answer
i have a main program in a pds i.e a.b.c and sub program is in a.b.d.

the question is how would be the dd statement

View Answer
Why we use export-import over repro?

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL JCL Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/7108/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.66