The PEND statement marks the end of an in-stream procedure. It must be used to terminate any procedure that begins with a PROC statement.
1//[name] PEND
1234//MYPROC PROC REGION=4M,CLASS=A //STEP1 EXEC PGM=IEFBR14,REGION=®ION //DD1 DD SYSOUT=&CLASS //PEND
123456//MYPROC PROC TYPE='REPORT',CLASS=A //STEP1 EXEC PGM=MYPGM,PARM='&TYPE' //PRINT DD SYSOUT=&CLASS //PEND //* Above is the procedure definition, below is its invocation //STEP01 EXEC MYPROC,TYPE='MONTHLY',CLASS=B