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 |
Hi, can we call catalog( say myproc } proc n times in jcl if so how please explain Thanks in advance
In how ways you can pass the data from Jcl to cobol ?
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step
What happens if both JOBLIB & STEPLIB is specified ?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?
What are three parameters you can specify on Job statement as well as on exec stmt ?
i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. How should i give the condition statement... I have tried this with two steps which is working but not able to add condn for the 3rd step. can anyone help me... I want to know the cond stmt which i can code in step 3 and step4, so that only either step2 or step3 or step4 executes
How is a dataset passed from one step to another?
Can we change a FB file to VB file in JCL? Please help
do we need to mention the location of catalogued procedure for each it's call in a single job?
how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly