View previous topic :: View next topic
|
Author |
Message |
geek_mohit
New User
Joined: 19 May 2006 Posts: 23
|
|
|
|
Hi all,
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.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
A program is an executable.
A proc is a collection of jcl that in turn executes one or more programs (executables).
Both are typically stored in some kind of pds. A load ibrary pds is not at all like a procedure library pds. |
|
Back to top |
|
|
prasadvrk
Active User
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. |
|
Back to top |
|
|
geek_mohit
New User
Joined: 19 May 2006 Posts: 23
|
|
|
|
Thanks so much Dick and Prasad for the prompt reply.
Appreciate all help. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
|