86 lines
5.8 KiB
HTML
86 lines
5.8 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE html
|
||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<meta name="security" content="public" />
|
||
|
<meta name="Robots" content="index,follow" />
|
||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
||
|
<meta name="DC.Type" content="reference" />
|
||
|
<meta name="DC.Title" content="Example: Record format *VS" />
|
||
|
<meta name="abstract" content="This is an example of record format *VS, which consists of graphics with explanations." />
|
||
|
<meta name="description" content="This is an example of record format *VS, which consists of graphics with explanations." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="formd.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbfvs" />
|
||
|
<meta name="DC.Language" content="en-us" />
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Example: Record format *VS</title>
|
||
|
</head>
|
||
|
<body id="rbfvs"><a name="rbfvs"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: Record format *VS</h1>
|
||
|
<div><p><span>This is an example of record format *VS,
|
||
|
which consists of graphics with explanations.</span></p>
|
||
|
<div class="section"><p>Variable-length, deblocked, spanned (*VS).</p>
|
||
|
</div>
|
||
|
<div class="example"> <div class="fignone" id="rbfvs__rbahh512.eps"><a name="rbfvs__rbahh512.eps"><!-- --></a><span class="figcap">Figure 1. Variable-length, deblocked, spanned
|
||
|
(*VS)</span><br /><img src="rbahh512.gif" alt="This graphic depicts three
blocks, with all three in a flowing order. Block 1 consists of XX YY, VV WW,
and 1st segment of Record A. Block 2 consists of XX YY, VV WW, and Middle
segment of Record A. Block 3 is made up of XX YY, VV WW and the Last segment
of Record A." /><br /></div>
|
||
|
</div>
|
||
|
<div class="section"><p><var class="varname">XX</var> and <var class="varname">YY</var> make
|
||
|
up the BDW for each data block. <var class="varname">XX</var> is the length of all
|
||
|
records in each block plus the length of the BDW (4 bytes). <var class="varname">YY</var> represents
|
||
|
currently reserved fields and must be 00. <var class="varname">XX</var> should be
|
||
|
the actual length of the data block that is written.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>Note that logical record A spans over three actual data blocks
|
||
|
on the tape.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>By breaking down each piece of record A, you can see that each
|
||
|
segment has its own characteristics.</p>
|
||
|
</div>
|
||
|
<div class="example"> <div class="fignone" id="rbfvs__rbahh513.eps"><a name="rbfvs__rbahh513.eps"><!-- --></a><span class="figcap">Figure 2. Segments of record A</span><br /><img src="rbahh513.gif" alt="In this diagram, the first
segment of Record A is TT CC and the 1st part of Record A data. The second
segment of Record A is TT CC and the middle part of Record A data. The last
segment of Record A is TT CC and the last part of Record A data." /><br /></div>
|
||
|
</div>
|
||
|
<div class="section"><p>Note that the actual mapping of the entire block 3 is shown in
|
||
|
the following figure:</p>
|
||
|
</div>
|
||
|
<div class="example"> <div class="fignone" id="rbfvs__rbahh514.eps"><a name="rbfvs__rbahh514.eps"><!-- --></a><span class="figcap">Figure 3. Mapping of block 3</span><br /><img src="rbahh514.gif" alt="This diagram shows block
3, which contains 4 parts. From left to right is XX YY, VV WW, TT CC, and
the last part of Record A." /><br /></div>
|
||
|
</div>
|
||
|
<div class="section"><p>Each segment of record A has its own by mapping by including the
|
||
|
SDW. <var class="varname">TT</var> and <var class="varname">CC</var> make up the SDW. <var class="varname">TT</var> is
|
||
|
the length of the record plus the length of the SDW (4 bytes). <var class="varname">CC</var> is
|
||
|
the segment control character. The first byte of the <var class="varname">CC</var> defines
|
||
|
which part of the record the segment is. The values of the control character
|
||
|
can be:</p>
|
||
|
</div>
|
||
|
<div class="section"> <ul><li> 00 binary - Complete logical record</li>
|
||
|
<li> 01 binary - First segment of a multi-segment record</li>
|
||
|
<li> 10 binary - Last segment of a multi-segment record</li>
|
||
|
<li> 11 binary - Middle segment of a multi-segment record</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="section"><p>The second byte of the control character is reserved, and should
|
||
|
be 0. TT should be the actual length of record data segment plus the length
|
||
|
of the SDW (4 bytes).</p>
|
||
|
</div>
|
||
|
<div class="section"><p>From a user's point of view, a logical view of record A is the
|
||
|
same as other records defined above.</p>
|
||
|
</div>
|
||
|
<div class="example"> <div class="fignone" id="rbfvs__rbahh515.eps"><a name="rbfvs__rbahh515.eps"><!-- --></a><span class="figcap">Figure 4. Logical view of record A</span><br /><img src="rbahh515.gif" alt="This record is comprised
of VV WW and the 1st, middle, and last portions of Record A data, concatenated." /><br /></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="formd.htm" title="Here are some examples of different record formats.">Record formats</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|