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
 

 

What is the difference b/n job and proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rajabhushanam.y

New User


Joined: 12 Jul 2007
Posts: 11
Location: Mysore

PostPosted: Thu Aug 02, 2007 5:58 pm    Post subject: What is the difference b/n job and proc
Reply with quote

Hi friends,

What is difference b/n job and proc ? At the same time what are main advantages of using procs.please let me know the detailed manner.


Thanks,
Rajabhushanam.y
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 02, 2007 6:59 pm    Post subject:
Reply with quote

z/OS Fundamentals PDF. Look at Chapter 6.
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Thu Aug 02, 2007 7:11 pm    Post subject: Re: What is the difference b/n job and proc
Reply with quote

Hi,

Job contains JCL which is ready excecutable.
Proc is a JCL called from main JCL.

Advantage of Proc.
If you use Symbolic parameters in Proc, you can use same proc for excecuting Test, QA data sets
Suppose,
Test dataset -- AT
QA dataset-- QT

If I use a symbolic parameter and give that info in JCL which calls proc, that is sufficient.
Please do read manuals for more information. 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: Thu Aug 02, 2007 9:17 pm    Post subject:
Reply with quote

Hello,

Another advantage of PROCs is re-startability.

Many organizations have a policy that all scheduled production jobs execute one or more PROCs. The normal jcl contains a JOB statement, and one or more EXEC statements (with symbolic parameters if any).
Back to top
View user's profile Send private message
BalaMuraliL

New User


Joined: 01 Aug 2007
Posts: 10
Location: Pune

PostPosted: Fri Aug 03, 2007 12:16 am    Post subject:
Reply with quote

Hi Rajabhushanam,

JOB contains executable JCL statements. Each JOB will have max 255 steps to execute. each step will execute diff program. Each program will have diff functionality. In 255 steps you may invoke procedures or programs. Here my piont is, JOB is used to execute programs or to invoke procedures. This is what job will do...


Coming for Proc's... Proc stands for Procedure. It means, there should be some certain procedure which multiple users can use the same code as per their requirement. Little in detail... Take for example...

There is a program ( ACCTCHEK) which will check the account # against with masterfile. here , input file contains some account # and this file will check aginst with master file. This is the functionality of ACCTCHEK program. Now this program i am coding in catalog procedure.

User 1 : has a JOB which will contain 10 steps , but, out of 10 steps there is a step which has to check the account # against with master file.

User 2 : has a JOB which will contain 30 steps, but, out of 30 steps there is a step which has to check the account # against with master file.

.
.
.
User n ....

here my point is , all the user are expecting same kind of functionality which has to check the account # against with the master file. Instead of writing diff users as same functionality program multiple times, they will write one prgoram ( ACCTCHEK as per the above example ) and they will keep that progam in catalog procedures. So, advantages are Reusability, One time debugging, we can reduce multiple coding .

Hope it will help you this information... Please let me know if you are not clear. Thanks.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm


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