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

Can we browse or edit the GDG dataset if it is a tape entry?

4 Answers  


How to identify where file is empty or not? How many ways are there to identifying?

3 Answers   CTS,


i have job card like this //job ***** //step1 exec pgm=iebgener //sysut1 dd dsn=main.sss,disp=shr // dd dsn=main1.sss,disp=shr // dd dsn=main2.sss,disp=shr //sysut2 dd dsn=out1.mmm ,disp=(new,catlg,delete) dcb=( ) // sysin dd * like this what i have to do to skip dsn=main1.sss please giveme answer asap

2 Answers   IBM, TetraSoft,


What is a Generation Data Group (GDG)?

2 Answers  


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

2 Answers  






Is condition checking possible in jcl?

0 Answers  


What do you do if you do not want to keep all the space allocated to a dataset?

2 Answers  


If job is submitted with typerun = hold then how can we submit the same job?

3 Answers   Wipro,


In JCl which of this activities get executed if act002 abnormally terminates //job001 job ......... //act001 exec pgm=cobo01 //act002 exec pgm=cob02, cond=(01,le) //actoo3 exec pgm=cob03, cond=only //actoo4 exec pgm=con04

3 Answers   Patni,


Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA

3 Answers   VC, Wipro,


WHAT IS DUMMY IN JCL? HOW TO USE IT? CAN ANYBODY SEND PROGRAM ON THIS?

3 Answers  


I had 100 steps in jcl i want to execute first 10 steps only?

6 Answers   IBM,


Categories