describe the exec statement,its meaning ,syntax and
keywords?

Answers were Sorted based on User's Feedback



describe the exec statement,its meaning ,syntax and keywords? ..

Answer / krithiga hari

EXEC statement executes a program.

Syntax:

//stepname EXEC PGM=program name, keyword parameters

The various keyword parameters are

ACCT - accouning information for the job step
PARM - for supplying information to the associated cobol program
ADDRSPC - this indicates the system that the job step uses
virtual or real storage
DPRTY - dispatching priority
PERFORM - performance group for the job step
RD - automatic restart
COND - condition
REGION - default amount of workspace
TIME - time for the job to execute

Is This Answer Correct ?    3 Yes 0 No

describe the exec statement,its meaning ,syntax and keywords? ..

Answer / vish

Just an addition to the Hari's answer, EXEC is used to call
a PROC to, apart from calling a PROGRAM.

//step01 EXEC PGM=XYZ

//step02 EXEC XYZ

in first example (step01) it's calling a program XYZ
In second example (step02) it's calling a PROC XYZ

Do let me know if anyone have some other thoughts, enjoy!

Is This Answer Correct ?    2 Yes 1 No

describe the exec statement,its meaning ,syntax and keywords? ..

Answer / kalaimani

it is the first executable statement. exec statment
overrides the job.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

wht r different types of sorts ?

1 Answers   L&T,


Explain concatenating datasets?

2 Answers   CTS,


What is the exact difference between PRTY and DPRTY

2 Answers   iGate,


How do you override a parameter in Positional parameters?

4 Answers   Thomson Reuters,


How is a new GDG coded?

2 Answers  






What is JCL LIB ?

3 Answers   Xansa,


in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?

3 Answers   Patni,


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

0 Answers  


how to modify the copy book?explain with examples

2 Answers   TCS,


I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?

4 Answers   Broadridge, HCL,


what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......

2 Answers  


Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


Categories