65 lines
4.4 KiB
HTML
65 lines
4.4 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="concept" />
|
||
|
<meta name="DC.Title" content="Substring fields" />
|
||
|
<meta name="abstract" content="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." />
|
||
|
<meta name="description" content="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." />
|
||
|
<meta name="DC.subject" content="substring field, SST (Substring) keyword, using, substring operation, field, substring" />
|
||
|
<meta name="keywords" content="substring field, SST (Substring) keyword, using, substring operation, field, substring" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafodescdrv.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="rbafodrvsst" />
|
||
|
<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>Substring fields</title>
|
||
|
</head>
|
||
|
<body id="rbafodrvsst"><a name="rbafodrvsst"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Substring fields</h1>
|
||
|
<div><p>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.</p>
|
||
|
<p>For example, assume that you defined the <em>Date</em> field in physical
|
||
|
file <em>PF1</em> as 6 characters in length. You can describe the logical file
|
||
|
with three fields, each 2 characters in length. You can use the SST keyword
|
||
|
to define MM as 2 characters starting in position 1 of the <em>Date</em> field,
|
||
|
DD as 2 characters starting in position 3 of the <em>Date</em> field, and YY
|
||
|
as 2 characters starting in position 5 of the <em>Date</em> field.</p>
|
||
|
<p>The following example shows the field descriptions in data description
|
||
|
specifications (DDS) for these substring fields. The SST keyword is used to
|
||
|
specify the field to substring.</p>
|
||
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
||
|
A R REC1 PFILE(PF1)
|
||
|
A
|
||
|
A MM I SST(DATE 1 2)
|
||
|
A DD I SST(DATE 3 2)
|
||
|
A YY I SST(DATE 5 2)
|
||
|
A</pre>
|
||
|
<div class="note"><span class="notetitle">Note:</span> The starting position of the substring is specified according to its
|
||
|
position in the field being operated on (<em>Date</em>), not according to its
|
||
|
position in the file. The I in the Usage column indicates input-only.</div>
|
||
|
<p>Substring fields can also be used as key fields and select/omit
|
||
|
fields.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafodescdrv.htm" title="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.">Derive new fields from existing fields</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|