ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafodescdrv.htm

62 lines
5.3 KiB
HTML
Raw 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="concept" />
<meta name="DC.Title" content="Derive new fields from existing fields" />
<meta name="abstract" content="Fields in a logical file can be derived from fields in the physical file on which the logical file is based or from fields in the same logical file." />
<meta name="description" content="Fields in a logical file can be derived from fields in the physical file on which the logical file is based or from fields in the same logical file." />
<meta name="DC.subject" content="deriving new fields from existing fields, field, deriving new from existing fields, CONCAT (Concatenate) keyword, concatenate (CONCAT) keyword, keyword, DDS, CONCAT (Concatenate), SST (Substring) keyword, Substring (SST) keyword, DFT (Default) keyword, Default (DFT) keyword, DFT (Default), SST (Substring)" />
<meta name="keywords" content="deriving new fields from existing fields, field, deriving new from existing fields, CONCAT (Concatenate) keyword, concatenate (CONCAT) keyword, keyword, DDS, CONCAT (Concatenate), SST (Substring) keyword, Substring (SST) keyword, DFT (Default) keyword, Default (DFT) keyword, DFT (Default), SST (Substring)" />
<meta name="DC.Relation" scheme="URI" content="rbafodrflf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoconfd.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodrvsst.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodrvrnm.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodrvtrn.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="rbafodescdrv" />
<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>Derive new fields from existing fields</title>
</head>
<body id="rbafodescdrv"><a name="rbafodescdrv"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Derive new fields from existing fields</h1>
<div><p>Fields in a logical file can be derived from fields in the physical
file on which the logical file is based or from fields in the
same logical file. </p>
<p>For example, you can concatenate, using the CONCAT keyword, two or more
fields from a physical file to make them appear as one field in the logical
file. Likewise, you can divide one field in the physical file to make it appear
as multiple fields in the logical file with the SST keyword. </p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafoconfd.htm">Concatenated fields</a></strong><br />
Using the CONCAT keyword, you can combine two or more fields from a physical file record format to make one field in a logical file record format.</li>
<li class="ulchildlink"><strong><a href="rbafodrvsst.htm">Substring fields</a></strong><br />
You can use the SST keyword to specify which fields (character, hexadecimal, or zoned decimal) are in a substring. You can also use substring with a packed field in a physical file by specifying S (zoned decimal) as the data type in the logical file.</li>
<li class="ulchildlink"><strong><a href="rbafodrvrnm.htm">Renamed fields</a></strong><br />
You can name a field in a logical file differently than in a physical file using the RENAME keyword. You might want to rename a field in a logical file because the program was written using a different field name or because the original field name does not conform to the naming restrictions of your high-level language.</li>
<li class="ulchildlink"><strong><a href="rbafodrvtrn.htm">Translated fields</a></strong><br />
You can specify a translation table for a field using the TRNTBL keyword. When you read a logical file record and a translation table was specified for one or more fields in the logical file, the system translates the data from the field value in the physical file to the value determined by the translation table.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafodrflf.htm" title="For every logical file record format described with data description specifications (DDS), you must specify a record format name and either the PFILE keyword (for simple and multiple format logical files), or the JFILE keyword (for join logical files).">Describe logical file record formats</a></div>
</div>
</div>
</body>
</html>