What is the difference between PROC and PGM?

Showing Answers 1 - 11 of 11 Answers

chandrasekaran

  • Jun 22nd, 2006
 

Proc is the name which begins the procedure. It is mandatory when you go for a procedure you have to give proc.

Pgm is the name of the program you want to execute. Default Pgm's for ex. are sort, idcams, iebcopy

Thanks

Chandrasekaran

  Was this answer useful?  Yes

Kishore Sharma

  • Aug 4th, 2006
 

Proc is a procedure generally coded for executing repetitive job and coded in JCL.

Pgm is a program coded in COBOL(main language) DB2,

PGM could be inbuilt also such as IDCAMS, IEFBR14, and many more

  Was this answer useful?  Yes

PADMA

  • Apr 23rd, 2019
 

Can you please explain what is proc and why it is needed in writing code

  Was this answer useful?  Yes

Dhanasekaran

  • Jun 12th, 2019
 

Group of JCL statements together and giving them a name is a procedure.
Procedures are the pre-written segment of codes consisting of one or more JOB steps. By using procedures, the amount of JCL coding you have to do is reduced. Since it helps in minimizing duplication of code, a number of errors also reduced.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions