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 use of disp parameter in dd statement?
Can we delete the data using IEFBR14 , IEBGENER??
What is a Dummy Utility and what it does ?
Are there any set of rules for the names of the steps used in a job? What are they?
What is a COND parameter in JCL?
There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and not using any Restart and IF/THEN/ELSE parameter?
What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?
Where can program checkpoints be stored for use in a restart?
how many max steps can we use in a job? pls answer to my question
Differentiate between the joblib and the steplib statements?
Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?
Definition of COND parameter in JCL