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

What is the difference b/n job and proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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

Moderator Emeritus


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

PostPosted: Thu Aug 02, 2007 9:17 pm
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
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 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