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 |
How to do automated restart when a job abend?
What is difference between Return Code, user completion code, Abend code and reason Code?
suppose i have 10 job steps and i want to execute only step 6.How to write?
how to run JCL thru COBOL.
How to execute 300 steps in a Job?
What is the difference between run mode and addressing mode?
how to have variable length record in outrec..i have the requmt as follows.. i/p file variable lenght record output file : i need to alter the input and write into outrec(another file) sort fields: copy from(dd1) using ctl1 ctl1cntl dd * outfil fnames=xxx, outrec=(1,131) here i outrec is bombing with error..how to overcome this defect...???
What is the meaning of the EXEC statement keyword, COND? What is its syntax?
How to execute only th 15th step of JCL consisting of 50 steps?
We have 100 steps in a procedure and we need to run the jcl and execute only 25th step in the proc and not the remaining steps. How can we do it?
5 Answers IBM, JPMorgan Chase,
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you