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

Diffence between UNIT and VOL Parameter in JCL.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sramekan

New User


Joined: 25 Aug 2003
Posts: 8
Location: Chennai

PostPosted: Thu Aug 28, 2003 3:17 pm
Reply with quote

hi,
Could anyone clearly explain me the diffence between UNIT and VOL Parameter in JCL.All the differences between them.

Also the difference between SYSPRINT & SYSOUT in JCL.

thanks in advance.
ramesh
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Aug 28, 2003 8:29 pm
Reply with quote

Hello sramekan,

UNIT
With SMS, you do not need to use the UNIT parameter to specify a device for an SMS-managed data set. Use the STORCLAS parameter or let an installation-written automatic class selection (ACS) routine select a storage class for the data set.

Also with SMS, for a non-SMS-managed data set, if your storage administrator has set a system default unit under SMS, you do not need to specify UNIT. Check with your storage administrator.

Use the UNIT parameter to ask the system to place the data set on:

A specific device.
A certain type or group of devices.
The same device as another data set.

The UNIT parameter can also tell the system how many devices to assign and request that the system defer mounting the volume until the data set is opened.

Eg:

//STEP2 EXEC PGM=POINT
//DDX DD DSNAME=EST,DISP=MOD,VOLUME=SER=(42569,4257)),
// UNIT=(348),2)
//DDY DD DSNAME=ERAS,DISP=OLD,UNIT=348)
//DDZ DD DSNAME=RECK,DISP=OLD,
// VOLUME=SER=(4)653,13262),UNIT=AFF=DDX

DD statement DDX requests two 3480 tape devices, DD statement DDZ requests the same two devices as DDX. Note that the operator will have to change volumes on the two 3480 devices during execution of the job step.
DD statement DDY requests one 3480 tape device.


VOL

Data sets on system-managed tape volumes exhibit both SMS and non-SMS characteristics. When necessary, data sets on a system-managed tape volume are distinguished from system-managed DASD data sets. Otherwise, the term system-managed data sets refers to both data sets on a system-managed tape volume and system-managed DASD data sets.


With SMS, consider the following:
All volumes in a multi-volume data set should reside in the same
system-managed tape library and must belong to the same tape storage group.

If all of the volumes do not reside in the same tape library, the installation can enter the volumes through the DFSMS installation exit, CBRUXVNL.

You cannot make a specific volume reference to a scratch volume.

You do not need to use the VOLUME parameter to specify volumes for new
data sets.

You cannot override the volume count for an existing system-managed DASD data set (but you can specify a volume count when you create a new
system-managed DASD data set).

If the storage administrator has specified a system default unit name and you do not code a UNIT name for non-system-managed data sets, then the system uses the volumes associated with the default unit name. In this case, you do not need to code the VOLUME parameter. Check with your storage administrator to determine whether a default unit name has been specified.

Use the VOLUME parameter to identify the volume or volumes on which a data set resides or will reside. You can request:

A private volume
Retention of the volume
A specific volume by serial number
The same volume that another data set uses

You can also specify which volume of a multivolume data set is to be processed first and, for an output data set, the number of volumes required.

A nonspecific volume request is a DD statement for a new data set that can be assigned to any volume or volumes. To make a nonspecific volume request for a new data set, either:

Omit the VOLUME parameter.
Code a VOLUME parameter but omit a SER or REF subparameter.

Eg:

//DD1 DD DSNAME=DATA3,UNIT=SYSDA,DISP=OLD,
// VOLUME=(PRIVATE,SER=548863)

The DD statement requests an existing data set, which resides on the direct access volume, serial number 548863. Since PRIVATE is coded, the system will not assign to the volume another data set for which a nonspecific volume request is made and will demount the volume at the end of the job.


SYSOUT:

Use the SYSOUT parameter to identify this data set as a system output data set, usually called a sysout data set. The SYSOUT parameter also:

Assigns this sysout data set to an output class. The attributes of each output class are defined during JES initialization; the attributes include the device or devices for the output class.

Optionally requests an external writer to process the sysout data set rather than JES. An external writer is an IBM- or installation-written program.

Optionally identifies the forms on which the data set is to be printed or
punched.

Optionally refers to a JES2 /*OUTPUT statement for processing parameters.

The sysout data set is processed according to the following processing options, in override order:
The options specified on this sysout DD statement.
The options specified on a referenced OUTPUT JCL statement.
The options specified on a referenced JES2 /*OUTPUT statement or on a JES3 //*FORMAT statement.
The installation default options for the requested output class.


SYSPRINT

The SYSPRINT data set contains the generated output listing. The entry in the List ID field determines the destination of the output listing.

//SYSPRINT DD SYSOUT = A


You can find this in any JCL manual

Hope this helps you

Regards

Mayuresh
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Aug 29, 2003 8:55 am
Reply with quote

Hi sramekan,

The manner in which you posed your SYSOUT/SYSPRINT question defines them as JCL DDNAMEs. In that context a //SYSOUT dataset is usualy (but not always) used to contain the results of DISPLAY stmts (COBOL pgms) and/or WTOs (assembler pgms). I'm not sure of how or if other language pgms use these DDNAMEs.

//SYSPRINT datasets usually (but not always) contain utility listings, error msgs and such.

But remember, they are just DDNAMEs , like //OUTDD, //MYSTUFF, or even //FRED. They can be used for anything thhat the above mentioned names could be conceivably used for.

That being said, //SYSOUT (not to be confused with the SYSOUT of SYSOUT=x fame, addressed by mdtendulkar, above) does have a special use in (as I stated above) COBOL and assembler pgms when the special DISPLAY or WTO stmts are used. In that case, //SYSOUT should not be used for any other purpose.

While I SAY you could use these two DDs in many ways, to make the point that they are just DDNAMEs like any other, it's best to limit their use to their traditional roles.

Regards, Jack.
Back to top
View user's profile Send private message
sramekan

New User


Joined: 25 Aug 2003
Posts: 8
Location: Chennai

PostPosted: Fri Aug 29, 2003 5:33 pm
Reply with quote

Hi,
Thanks for ur prompt response. and useful information.

regards
Ramesh
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top