Describe the EXEC statement, its meaning, syntax and keywords?

The EXEC statement identifies the program to be executed via a PGM=program name keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can be used to pass external values to the executing program.

Showing Answers 1 - 4 of 4 Answers

Renuka Mudaliyar

  • Apr 4th, 2006
 

The EXEC statement helps us to execute the program which we want to by giving the name next to EXEC

eg: EXEC

  Was this answer useful?  Yes

Renuka Mudaliyar

  • Apr 4th, 2006
 

The EXEC statement is given when we want to execute a particular program

The EXEC statement should be followed by the program name

eg : EXEC program1

Here, program1 is the name of the program

  Was this answer useful?  Yes

Daryljax

  • Aug 26th, 2007
 

The EXEC statement is used to specify either the program (PGM) or the Procedure (PROC) to execute.  The format is:
//aaaaaaaa EXEC PGM=xxxxxxxx
or
//aaaaaaaa EXEC zzzzzzzz

Where xxxxxxxx is the program name and zzzzzzzz is the PROC name
and aaaaaaaa is the stepname.

JOSEPH P JOHN

  • Oct 25th, 2007
 

EXEC statement refers to a PROGRAM or a PROCEDURE to be executed
Syntax: //stepname    EXEC   PGM=pgm-name,parameters
OR
//stepname     EXEC    procedure-name,parameters
Parameters are
1.Positional(pgm-name,procedure name)
 2.Keyword (PARM,REGION,ACCT,COND,TIME)

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions