FORMATS
RECORD
FORMAT
The basicunit of information recorded by the drive is
a byte consistingof eight bits. A group of bytes
separated
by a special
gapis called an area. Areas are
combined to make a record, the logical unit of inform-
ation. A record consists
of count, key, and data areas.
CountArea
The count areacontains the location of a data record
on a specifictrack and definesthe sizeof tlhekey and
data areasof the record. The count areais written
when the record isformatted and isnot changed
until
the record is reformatted.
KeyArea
Use of the key areais at the discretion of the program-
mer. When used,the key areaof the record contains
the primary identification of the data portion of the
record (such associalsecurity number, man number,
part number).
Once the key areais formatted, the contents (but not
the length) may be altered. If the key areais altered,
the data areaof the record must alsobe rewritten.
Data
Area
The data areacontainsthe information identified by
the count and key areasof the record. Data informa-
tion is organizedand arrangedby the programmer.
The length of the data areais defined by the count
area. Once the data areais formatted, the contents
(but not the length) may be altered. The contents of
the data areamay be alteredwithout affecting any
other areain the record.
TRACKFORMAT
All tracks areinitially formatted beginning at an index
point (see
Figure 6). Each track hasthe samebasic
format: home address,track descriptor record, and one
or more data records. The records.and areas
within
the records,areseparated
by gaps.
HomeAddress
Each track contains one home address,which defines
the physical location of the track (track address)
and
the condition of the track. Home address
is the first
recorded areafollowing an index point.
Specificcommandsareusedfor writing and readinga
home address
area:Write Home Address and Read
Home Address. Home address
is normally rewritten to
flag the defective track. Writing home addressesis
usuallydone at the IBM plant.
TrackDescriptorRecord
(R0)
This record is always the first record on the track
following the home addressarea. In IBM program-
ming systems,the R0 count field of the defective track
providesthe addressof the alternate track. If it is an
alternate track, the R0 count areaproyides the address
of the defective track. An 8-byte data field isusedto
storethe number of bytes remaining on the track.
Specificcommands,Write R0 and Read R0, areused
for writing and reading the track descriptor record.
Data Records
One or more data records may follow the track
descriptor record (R0) on a track. Record format is
determined at the time the count, key, and data areas
of the record are originally written by execution of a
Format Write command. The format of the record is
rewritten by another Format Write command.
Data records,aswell astrack descriptor records,can
be formatted with or without keys. Generally, file
organization determineswhether keys areused.
RECORDOVERFLOW
The record overflow function provides a means
of
processing
logical records that exceedthe capacity of a
track. When using overflow records,the cylinder
boundarv limits the sizeof the record.
8 IBM 3340144
ReferenceManual