113 lines
5.9 KiB
HTML
113 lines
5.9 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: Reorganize a physical file" />
|
||
|
<meta name="abstract" content="The examples in this topic show how to reorganize physical files with the Reorganize Physical File Member (RGZPFM) command." />
|
||
|
<meta name="description" content="The examples in this topic show how to reorganize physical files with the Reorganize Physical File Member (RGZPFM) command." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbaforrgpf.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbaforrgpfe" />
|
||
|
<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: Reorganize a physical file</title>
|
||
|
</head>
|
||
|
<body id="rbaforrgpfe"><a name="rbaforrgpfe"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: Reorganize a physical file</h1>
|
||
|
<div><p>The examples in this topic show how to reorganize physical files
|
||
|
with the Reorganize Physical File Member (RGZPFM) command.</p>
|
||
|
<div class="section"><div class="p">For example, the following RGZPFM command reorganizes the first
|
||
|
member of a physical file using an access path from a logical file: <pre>RGZPFM FILE(DSTPRODLB/ORDHDRP)
|
||
|
KEYFILE(DSTPRODLB/ORDFILL ORDFILL)</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="section"><p>The physical file ORDHDRP has an arrival sequence access path.
|
||
|
It was reorganized using the access path in the logical file ORDFILL. Assume
|
||
|
the key field is the <em>Order</em> field. The following example shows how the
|
||
|
records were arranged.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>This table shows the original ORDHDRP file. Note that record 3
|
||
|
was deleted before the RGZPFM command was run.</p>
|
||
|
</div>
|
||
|
|
||
|
<table cellpadding="4" cellspacing="0" border="1" class="tableborder"><tr><td>
|
||
|
<table cellpadding="4" cellspacing="0" summary="" width="100%" border="0"><thead align="left"><tr><th valign="middle" width="25%" id="d0e34">Relative record number</th>
|
||
|
<th valign="middle" width="25%" id="d0e36">Cust</th>
|
||
|
<th valign="middle" width="25%" id="d0e38">Order</th>
|
||
|
<th valign="middle" width="25%" id="d0e40">Ordate. . .</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody><tr><td valign="top" width="25%" headers="d0e34 ">1</td>
|
||
|
<td valign="top" width="25%" headers="d0e36 ">41394</td>
|
||
|
<td valign="top" width="25%" headers="d0e38 ">41882</td>
|
||
|
<td valign="top" width="25%" headers="d0e40 ">072480. . .</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="25%" headers="d0e34 ">2</td>
|
||
|
<td valign="top" width="25%" headers="d0e36 ">28674</td>
|
||
|
<td valign="top" width="25%" headers="d0e38 ">32133</td>
|
||
|
<td valign="top" width="25%" headers="d0e40 ">060280. . .</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="25%" headers="d0e34 ">3</td>
|
||
|
<td valign="top" width="25%" headers="d0e36 ">deleted</td>
|
||
|
<td valign="top" width="25%" headers="d0e38 ">record</td>
|
||
|
<td valign="top" width="25%" headers="d0e40 "> </td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="25%" headers="d0e34 ">4</td>
|
||
|
<td valign="top" width="25%" headers="d0e36 ">56325</td>
|
||
|
<td valign="top" width="25%" headers="d0e38 ">38694</td>
|
||
|
<td valign="top" width="25%" headers="d0e40 ">062780. . .</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</td></tr></table>
|
||
|
<div class="section"><p>This table shows the ORDHDRP file reorganized using the <em>Order</em> field
|
||
|
as the key field in ascending sequence.</p>
|
||
|
</div>
|
||
|
|
||
|
<table cellpadding="4" cellspacing="0" border="1" class="tableborder"><tr><td>
|
||
|
<table cellpadding="4" cellspacing="0" summary="" width="100%" border="0"><thead align="left"><tr><th valign="middle" width="25%" id="d0e92">Relative record Number</th>
|
||
|
<th valign="middle" width="25%" id="d0e94">Cust</th>
|
||
|
<th valign="middle" width="25%" id="d0e96">Order</th>
|
||
|
<th valign="middle" width="25%" id="d0e98">Ordate. . .</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody><tr><td valign="top" width="25%" headers="d0e92 ">1</td>
|
||
|
<td valign="top" width="25%" headers="d0e94 ">28674</td>
|
||
|
<td valign="top" width="25%" headers="d0e96 ">32133</td>
|
||
|
<td valign="top" width="25%" headers="d0e98 ">060280. . .</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="25%" headers="d0e92 ">2</td>
|
||
|
<td valign="top" width="25%" headers="d0e94 ">56325</td>
|
||
|
<td valign="top" width="25%" headers="d0e96 ">38694</td>
|
||
|
<td valign="top" width="25%" headers="d0e98 ">062780. . .</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" width="25%" headers="d0e92 ">3</td>
|
||
|
<td valign="top" width="25%" headers="d0e94 ">41394</td>
|
||
|
<td valign="top" width="25%" headers="d0e96 ">41882</td>
|
||
|
<td valign="top" width="25%" headers="d0e98 ">072480. . .</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</td></tr></table>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbaforrgpf.htm" title="This topic outlines the uses of the Reorganize Physical File Member (RGZPFM) command.">Reorganize a physical file using the Reorganize Physical File Member (RGZPFM) command</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|