What is the differnce between UNIT and VOL Parameter in JCL?

JES2/3, JCL, utilities.
Post Reply
IT learner
New Member
Posts: 5
Joined: Thu Jan 30, 2014 10:01 am

What is the differnce between UNIT and VOL Parameter in JCL?

Post by IT learner »

Hi,

Could anyone clearly explain me the difference between UNIT and VOL Parameter in JCL? Are not they just same?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: What is the differnce between UNIT and VOL Parameter in

Post by zprogrammer »

Unit and volume specify the location of a dataset.Unit specifies whether the dataset resides in DASD or TAPE
so you mention

UNIT=SYSDA or UNIT=TAPE

VOL specifies the volume seial number

Also here a very good link about the relationship

http://pic.dhe.ibm.com/infocenter/zos/v ... 560114.htm
zprogrammer
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: What is the differnce between UNIT and VOL Parameter in

Post by Robert Sample »

UNIT defines the type of device. VOL defines the actual tape or disk; this is important when a site may have hundreds of disk volumes and many thousands (even hundreds of thousands) of tape volumes. They are definitely NOT the same -- nowhere near it.
IT learner
New Member
Posts: 5
Joined: Thu Jan 30, 2014 10:01 am

Re: What is the differnce between UNIT and VOL Parameter in

Post by IT learner »

Thanks Pandora.

Thanks Robert - your reply is pretty helpful to understand this. Many thanks.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: What is the differnce between UNIT and VOL Parameter in

Post by zprogrammer »

Glad it helped :-)
zprogrammer
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”