describe the exec statement,its meaning ,syntax and
keywords?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / kalaimani
it is the first executable statement. exec statment
overrides the job.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is NOTCAT 2
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
What is multithreading in jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?
How to identify in JCL that an input file is empty without reading it?
How to create delta file using JCL
what happens if job falls in loop ? how to resolve it ?
how to run batch program without jcl?
What is the difference b/w the CLASS,TIME,PRTY in jcl job card.
What is the use of IEBGENER ?
Is it possible to left uncode disp?
in ways data can be passed to a COBOL program from JCL?