Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference Between Exec PGM=<Pgm Name> and Exec <Pr

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
geek_mohit

New User


Joined: 19 May 2006
Posts: 23

PostPosted: Thu Jun 07, 2007 11:16 pm    Post subject: Difference Between Exec PGM=<Pgm Name> and Exec <Pr
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 08, 2007 12:14 am    Post subject:
Reply with quote

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
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Fri Jun 08, 2007 11:44 am    Post subject:
Reply with quote

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
View user's profile Send private message
geek_mohit

New User


Joined: 19 May 2006
Posts: 23

PostPosted: Fri Jun 08, 2007 4:41 pm    Post subject: Re: Difference Between Exec PGM=<Pgm Name> and Exec &l
Reply with quote

Thanks so much Dick and Prasad for the prompt reply.

Appreciate all help.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 08, 2007 6:07 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us