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

Difference between PROC & PGM used in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vandana2006

New User


Joined: 18 Jan 2006
Posts: 3
Location: pune

PostPosted: Fri Jan 20, 2006 12:28 pm
Reply with quote

What is the difference between PROC & PGM used in JCL.
I think pgm is a utility while PROC is pretested JCL statements.
proc contains jcl statements used to make only load module of a program.
please correct me .
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri Jan 20, 2006 12:58 pm
Reply with quote

Hi,

Yes you are right.

For more etails please go thru manual.

Regards
Rupesh
Back to top
View user's profile Send private message
pankajayee

New User


Joined: 20 Sep 2005
Posts: 26

PostPosted: Fri Jan 20, 2006 8:59 pm
Reply with quote

Hi,

I want to add a little bit of information.

PGM must not always be a utility, It can be a developed program (might be a COBOL or ASSEMBLER) for performing a particular task.

Correct me if I am wrong.


Pankaj
Back to top
View user's profile Send private message
Ajitwip06

New User


Joined: 24 Jan 2006
Posts: 1

PostPosted: Tue Jan 24, 2006 11:27 pm
Reply with quote

What you have said and the other replies are perfectly right.

Just to add a little more...

Programs can reside in system libraries (datasets usually named SYS1.LINKLIB), in temporary libraries, and in private (user defined) libraries. A program must be a member of a partitioned dataset.
If the program name cannot be found in the libraries the job terminates abnormally.

Procs can be catalogued or instream and not necessarily restricted to making load module of a program.
( while coding we may also code //stepname EXEC PROC=procname , but usually no one does)

Ajit.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 25, 2006 1:13 am
Reply with quote

A little correction: Program must always to be a compiled load module. Even and interpreted program (REXX, EZTRIEVE, NATURAL) runs through some interpreter - which is a load module by itself. Instream programs also link-edited and become load modules before the "go" step.

O.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Proc print in Mainframe All Other Mainframe Topics 4
Search our Forums:

Back to Top