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
EXEC statement is used to execute a program/procedure. syntax: //stepname EXEC <positional>, <keyword> step name: -> optional but recommended -> must be unique in the job positional parameter can be any one of the following: PGM=program name PROC=procedure name eg: //step1 EXEC PGM=IEBGENER //step2 EXEC PROC=P1 keyword parameters used in EXEC statement are: 1.PARM : PARM parameter is used to pass information to program. PARM=value value is a string whose length varies from 1 to 100 character 2.COND : COND parameter is used to control the job step execution.It allows execution of one step depending on the retun code of previous step. COND=(comparsion-code,condition, stepname)
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? GDG stands for generation data group. It is a dataset with versions that can be referenced absolutely or relatively. It is defined by an IDCAMS define generation datagroup execution.