describe the exec statement,its meaning ,syntax and
keywords?

Answers were Sorted based on User's Feedback



describe the exec statement,its meaning ,syntax and keywords? ..

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

describe the exec statement,its meaning ,syntax and keywords? ..

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

describe the exec statement,its meaning ,syntax and keywords? ..

Answer / kalaimani

it is the first executable statement. exec statment
overrides the job.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

How to do automated restart when a job abend?

0 Answers  


What is difference between Return Code, user completion code, Abend code and reason Code?

2 Answers   IBM, Satyam, Wipro,


suppose i have 10 job steps and i want to execute only step 6.How to write?

6 Answers  


how to run JCL thru COBOL.

1 Answers   Patni,


How to execute 300 steps in a Job?

15 Answers   Accenture, Zensar,






What is the difference between run mode and addressing mode?

0 Answers  


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...???

1 Answers  


What is the meaning of the EXEC statement keyword, COND? What is its syntax?

2 Answers  


How to execute only th 15th step of JCL consisting of 50 steps?

12 Answers   Bank Of America,


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

0 Answers   IBM,


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

0 Answers  


Categories