Just wanted to know the difference we have between an EXEC PGM=<Pgm Name> statement and EXEC <Proc Name> statement.
I know that in case of EXEC <Pgm name> The specified program must be a member of a partitioned data set (PDS) or partitioned data set extended (PDSE) used as a system library, a private library, or a temporary library.
But in case of EXEC <Proc name> as well we have to include a JCLLIB much like we do a JOBLIB or STEPLIB in case of an EXEC <Pgm Name> statement.
Joined: 31 May 2006 Posts: 200 Location: Netherlands
Generally the production proc libs are predefined and you do not need to specify the proclib unless you want to use member of your own proc library(i.e. modified proc) in which case you need to code the JCLLIB ORDER= statement.