| Q. What is the UNIT Parameter? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| A. Sometimes, the Input Dataset from which we want to read Data Records may be located on a TAPE Drive. Also, when IBM Mainframe Servers are installed(a process called as SYSGEN), different I/O Devices are assigned an Address. This device address uniquely identifies the device. Apart from this, similar devices are grouped together and sometimes assigned a symbolic name. UNIT parameter can be used to identify a device, by the device address, symbolic name or mentioning TAPE(for tape drive).
This implies, that the input dataset TRGD56.DEMO.INPUT is located on the device group whose symbolic name is SYSDA. The UNIT parameter has AFF(Affinity) sub-parameter. To use the same unit, that has been used by a prior DD Statement, AFF sub-parameter is used.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Q. What is the VOL(VOLUME) Parameter used for? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The VOL parameter is used to specify disk volume on which the Input and Output datasets reside. The VOL parameter has several sub-parameters.
Let’s see some examples.
In the above example, the dataset resides on the volume VOL1. Now, lets see another example wherein, the dataset resides on 3 volumes.
In the above example, the dataset TRGD56.DEMO.INPUT resides on all the 3 volumes VOL1, VOL2 and VOL3. This requests the MVS O/S to mount all the three volumes at the same time.
Here, the Output dataset will be created on the tape drive, whose serial number is T02947.
Here, the Output dataset will be created on the device serial number T02947, and this volume will not be dismounted until the Batch JOB ends. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Q. What is the LABEL parameter used for? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Whenever tape datasets are used as Input Dataset or Output Dataset, LABEL parameter can be used.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Q. What is the SPACE parameter used for? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| When we create a new dataset, we would like to specify, how much storage space to reserve for the dataset. Storage Space Allocation can be specified using the SPACE parameter. Firstly, we must specify the unit of memory. We can specify it as BLKS(Blocks), TRKS(Tracks), CYL(Cylinders), KB(Kilotbytes) or MB(MegaBytes). Secondly, we must specify space we need - (primary,secondary). Upto 15 extends of the primary space will be available, and 1 extend of secondary space. Thus, if we specify the space as SPACE=(TRKS,(1,1)) Minimum Space Allocated(In Best Case) = 1 + 1 = 2 tracks. Maximum Space Allocated(In Worst Case) = 1 x 15 + 1 = 16 tracks. The SPACE Parameter also has sub-parameters like RLSE, MXIG, CONTIG and ROUND.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Q. What is the DCB(Data Control Block) Parameter used for? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The DCB parameter is used to specify the organization of records within the dataset. The DCB Parameter has 4 sub-parameters :
Let’s understand the DCB parameter with the help of an example.
Technorati Tags: IBM,Mainframes,Servers,IBM Mainframes,JCL Tutorial,JCL,DD,Quasar Chunawalla,UNIT,TAPE Drive,AFF,sub-parameter,Affinity,VOL,Volume,SER,Serial,REF,Referback,PRIVATE,RETAIN,SEQ,Sequence,LABEL,SPACE,Storage Space,TRKS,Track,CYL,Cylinder,BLKS,Block,KB,MB,PRIMARY,SECONDARY,Extends,RLSE,Release,CONTIG,Contiguous,MXIG,ROUND,DCB,Data Control Block,RECFM,Record Format,F,FB,V,VB,Fixed Blocked,Variable Blocked,Uniform,U,LRECL,Logical Record Length,Record Length,BLKSIZE,Block Size,DSORG,DIRBLKS,PS,Physical Sequential,PDS,Partitioned Dataset,PO,Partitioned Organized,IS,Indexed Sequential,DA,Direct Access |
Darn it!
|
|
|
- Subscribe to Mainframes360.com MAILING LIST and receive my articles and posts right in your mailbox...
- Resolved some Display issues and filling in the gaps(missing tutorials like VSAM) - Posting several Video tutorials |
Friday, July 3, 2009
JCL Tutorial – 08 : DD Statement – Part III
Subscribe to:
Post Comments (Atom)
Note :
| © Copyright – Quasar Chunawalla, Tata Consultancy Services,2009.
Note : The copyrights of all the material, text and pictures posted in this website belong to the author. Any instance of lifting the material from this website, shall be considered as an act of plagiarism. For any clarifications, please mail at quasar.chunawala@tcs.com |
Search by Tags
Contiguous
REF
Variable Blocked
Quasar Chunawalla
CONTIG
Main Page
sub-parameter
Serial
JCL Tutorial
TAPE Drive
Older Posts
Extends
BLKSIZE
SPACE
BLKS
V
SECONDARY
Learn C#
Atom
Block
PDS
DIRBLKS
Uniform
UNIT
ROUND
Partitioned Dataset
VOL
VB
Posts (Atom)
FB
JCL
U
IS
Block Size
RLSE
JCL Tutorial – 08 : DD Statement – Part III
Data Control Block
DD
Indexed Sequential
LABEL
Referback
Sequence
RECFM
Direct Access
Storage Space
Mainframes
PRIMARY
Volume
RETAIN
DA
PO
MB
MXIG
Affinity
Links to this post
Servers
4:34 PM
IBM Mainframes
Record Length
CYL
Logical Record Length
PS
DCB
Track
Release
KB
IBM
SEQ
F
Cylinder
SER
skip to sidebar
Partitioned Organized
0 comments
Fixed Blocked
PRIVATE
Record Format
AFF
TRKS
DSORG
fahrradpacktaschen
LRECL
Physical Sequential


1 comments:
here ,This chaper should be II,not III.
Thanks.
Post a Comment