Adding an OUTPUT JCL or DD statement

To add OUTPUT JCL or DD statements to a procedure step, code in the name field of the added OUTPUT JCL or DD statement the name of the procedure step, followed by a period, followed by a name or ddname. The name must not appear on any procedure statement.
//pstepname.name   OUTPUT parameters
   //pstepname.ddname DD     parameters

If you omit the procedure step name, the statement is added to the step named in the previous OUTPUT JCL or DD statement that named a step. If no previous statements named steps, the statement is added to the first step in the procedure.

Added OUTPUT JCL and DD statements can contain symbols. If the statement is being added to the last procedure step, any symbols it contains must appear elsewhere in the procedure.