IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 08, 2007 12:14 am
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
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 08, 2007 6:07 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
No new posts What is the difference between Taskty... Compuware & Other Tools 2
Search our Forums:

Back to Top