View previous topic :: View next topic
|
Author |
Message |
vandana2006
New User
Joined: 18 Jan 2006 Posts: 3 Location: pune
|
|
|
|
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 |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Yes you are right.
For more etails please go thru manual.
Regards
Rupesh |
|
Back to top |
|
|
pankajayee
New User
Joined: 20 Sep 2005 Posts: 26
|
|
|
|
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 |
|
|
Ajitwip06
New User
Joined: 24 Jan 2006 Posts: 1
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
|