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 |
wht r different types of sorts ?
Explain concatenating datasets?
What is the exact difference between PRTY and DPRTY
How do you override a parameter in Positional parameters?
How is a new GDG coded?
What is JCL LIB ?
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?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
how to modify the copy book?explain with examples
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?
what is the function of iebcompr?....is it compare record length or characteristics of a dataset?...pls explain with examples.......
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?