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

68 lines
5.5 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="Use concatenation with DBCS fields through the Open Query File (OPNQRYF) command" />
<meta name="abstract" content="When using the Open Query File (OPNQRYF) concatenation function, the i5/OS licensed program assigns the resulting data type based on the data types of the fields being concatenated. When double-byte character set (DBCS) fields are included in a concatenation, the resulting data type is generally the same as concatenated fields in a logical file, with some slight variations." />
<meta name="description" content="When using the Open Query File (OPNQRYF) concatenation function, the i5/OS licensed program assigns the resulting data type based on the data types of the fields being concatenated. When double-byte character set (DBCS) fields are included in a concatenation, the resulting data type is generally the same as concatenated fields in a logical file, with some slight variations." />
<meta name="DC.subject" content="concatenation function with DBCS field, double-byte character set (DBCS), field, using the concatenation function, DBCS (double-byte character set), using the concatenation function, DBCS (double-byte character set), comparing, concatenation function, double-byte character set (DBCS), concatenation function" />
<meta name="keywords" content="concatenation function with DBCS field, double-byte character set (DBCS), field, using the concatenation function, DBCS (double-byte character set), using the concatenation function, DBCS (double-byte character set), comparing, concatenation function, double-byte character set (DBCS), concatenation function" />
<meta name="DC.Relation" scheme="URI" content="rbafodbcsqry.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodbcscon.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="rbafoqryoc" />
<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>Use concatenation with DBCS fields through the Open Query File (OPNQRYF)
command</title>
</head>
<body id="rbafoqryoc"><a name="rbafoqryoc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use concatenation with DBCS fields through the Open Query File (OPNQRYF)
command</h1>
<div><p>When using the Open Query File (OPNQRYF) concatenation function,
the <span class="keyword">i5/OS™</span> licensed program
assigns the resulting data type based on the data types of the fields being
concatenated. When double-byte character set (DBCS) fields are included in
a concatenation, the resulting data type is generally the same as concatenated
fields in a logical file, with some slight variations.</p>
<div class="p">The following rules apply when using concatenation with DBCS fields through
the OPNQRYF command: <ul><li>If the concatenation contains one or more hexadecimal (H) fields, the
resulting data type is hexadecimal (H).</li>
<li>If the concatenation contains one or more UCS2-graphic fields, the resulting
data type is UCS2-graphic.</li>
<li>If all fields in the concatenation are DBCS-only (J), the resulting data
type is variable length DBCS-only (J).</li>
<li>If the concatenation contains one or more DBCS (O, E, J) fields, but no
hexadecimal (H) or UCS2-graphic fields, the resulting data type is variable
length DBCS open (O).</li>
<li>If the concatenation contains one or more variable length fields of any
data type, the resulting data type is variable length.</li>
<li>If a DBCS-graphic (G) field is concatenated to another DBCS-graphic (G)
field, the resulting data type is DBCS-graphic (G).</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafodbcsqry.htm" title="These topics discuss the use of double-byte character set (DBCS) fields for these Open Query File (OPNQRYF) command functions: wildcard, concatenation, and sort sequence functions. A table shows valid comparisons for DBCS fields through the OPNQRYF command.">Use DBCS fields in the Open Query File (OPNQRYF) command</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbafodbcscon.htm" title="When fields are concatenated, the data types can change (the resulting data type is automatically determined by the system). You can follow these guidelines when double-byte character set (DBCS) fields are concatenated.">DBCS field concatenation</a></div>
</div>
</div>
</body>
</html>