ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakb_5.4.0.1/rzakbmstlformat.htm

85 lines
5.3 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?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="FORMAT (Format) keyword for physical and logical files" />
<meta name="abstract" content="Use this record-level keyword to specify that this record format is to share the field specifications for a previously defined record format. The name of the record format you are defining must be the name of the previously defined record format." />
<meta name="description" content="Use this record-level keyword to specify that this record format is to share the field specifications for a previously defined record format. The name of the record format you are defining must be the name of the previously defined record format." />
<meta name="DC.subject" content="FORMAT (Format) keyword" />
<meta name="keywords" content="FORMAT (Format) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfkeyw.htm" />
<meta name="DC.Relation" scheme="URI" content="recordformat.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="lformat" />
<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>Physical and Logical Files, FORMAT</title>
</head>
<body id="lformat"><a name="lformat"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">FORMAT (Format) keyword for physical and logical files</h1>
<div><p>Use this record-level keyword to specify that this record format
is to share the field specifications for a previously defined record format.
The name of the record format you are defining must be the name of the previously
defined record format.</p>
<div class="section"><div class="p">The format of the keyword is: <pre>FORMAT([library-name/]database-file-name)</pre>
</div>
<p>The
database-file-name parameter is required. It is the name of the physical or
logical file from which the previously defined record format is taken.</p>
<p>The
library-name is optional. If you do not specify the library-name, the library
list (*LIBL) in effect at file creation time is used.</p>
<p>If you specify
the FORMAT keyword, you cannot specify field specifications for this record
format. Specify key specifications and, if necessary, select/omit specifications
if you want them to be in effect for this file. (They can be the same as or
different from the previously defined record format.)</p>
<p>The FORMAT keyword
is not valid in join logical files and you cannot specify a join logical file
as the parameter value on the FORMAT keyword.</p>
<p>If the database file from
which you are using the record format is deleted, the record format remains
in existence as long as some file is using the record format. For example,
RECORD in FILE2 uses the FORMAT keyword to share the specifications of RECORD
in FILE1. Both files have been created. If FILE1 is deleted and
then re-created with different DDS, RECORD still exists in FILE2. It can be
referred to for the original record format by other files using the FORMAT
keyword.</p>
<p>You cannot specify a distributed data management (DDM) file
on this keyword.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the FORMAT keyword for a logical file.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD PFILE(FILE2)
00020A FORMAT(FILE1)
A</pre>
<p>The record format for this logical file is the same as
the previously specified record format in file FILE1. The name of this record
format (RECORD) must be the same as the name of the record format in FILE1.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakbmstlfkeyw.htm" title="This topic lists valid keyword entries for describing physical and logical files. They are typed in positions 45 through 80 (functions).">Keyword entries for physical and logical files (positions 45 through 80)</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="recordformat.htm" title="When you specify R in position 17, the name specified in positions 19 through 28 is a record format name.">Record format</a></div>
</div>
</div>
</body>
</html>