205 lines
17 KiB
HTML
205 lines
17 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="Compare DBCS fields through the Open Query File (OPNQRYF) command" />
|
||
<meta name="abstract" content="When comparing two fields or constants, fixed-length fields can be compared to variable-length fields as long as the types are compatible." />
|
||
<meta name="description" content="When comparing two fields or constants, fixed-length fields can be compared to variable-length fields as long as the types are compatible." />
|
||
<meta name="DC.Relation" scheme="URI" content="rbafodbcsqry.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="rbafodbcsqryo" />
|
||
<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>Compare DBCS fields through the Open Query File (OPNQRYF) command</title>
|
||
</head>
|
||
<body id="rbafodbcsqryo"><a name="rbafodbcsqryo"><!-- --></a>
|
||
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
<h1 class="topictitle1">Compare DBCS fields through the Open Query File (OPNQRYF) command</h1>
|
||
<div><p>When comparing two fields or constants, fixed-length fields can
|
||
be compared to variable-length fields as long as the types are compatible.</p>
|
||
<p> <a href="#rbafodbcsqryo__rbafoofile">Table 1</a> describes valid comparisons
|
||
for double-byte character set (DBCS) fields through the OPNQRYF command. </p>
|
||
|
||
<table cellpadding="4" cellspacing="0" border="1" class="tableborder"><tr><td>
|
||
<a name="rbafodbcsqryo__rbafoofile"><!-- --></a><table cellpadding="4" cellspacing="0" summary="" id="rbafodbcsqryo__rbafoofile" width="100%" border="0"><caption>Table 1. Valid
|
||
comparisons for DBCS fields through the OPNQRYF command</caption><thead align="left"><tr><th align="left" valign="bottom" width="8.655616942909761%" class="firstcol" id="d0e35"> </th>
|
||
<th align="left" valign="bottom" width="9.023941068139964%" id="d0e37">Any numeric</th>
|
||
<th align="left" valign="bottom" width="7.734806629834254%" id="d0e39">Character</th>
|
||
<th align="left" valign="bottom" width="7.734806629834254%" id="d0e41">Hexa- decimal</th>
|
||
<th align="left" valign="bottom" width="7.918968692449356%" id="d0e43">DBCS- open</th>
|
||
<th align="left" valign="bottom" width="8.47145488029466%" id="d0e45">DBCS- either</th>
|
||
<th align="left" valign="bottom" width="8.287292817679557%" id="d0e47">DBCS- only</th>
|
||
<th align="left" valign="bottom" width="8.47145488029466%" id="d0e49">DBCS- graphic</th>
|
||
<th align="left" valign="bottom" width="8.47145488029466%" id="d0e51">UCS2- graphic</th>
|
||
<th align="left" valign="bottom" width="8.103130755064457%" id="d0e53">Date</th>
|
||
<th align="left" valign="bottom" width="8.47145488029466%" id="d0e55">Time</th>
|
||
<th align="left" valign="bottom" width="8.655616942909761%" id="d0e57">Time- stamp</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e61" headers="d0e35 ">Any numeric</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e61 d0e37 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e61 d0e39 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e61 d0e41 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e61 d0e43 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e61 d0e45 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e61 d0e47 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e61 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e61 d0e51 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e61 d0e53 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e61 d0e55 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e61 d0e57 ">Not valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e86" headers="d0e35 ">Character</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e86 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e86 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e86 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e86 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e86 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e86 d0e47 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e86 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e86 d0e51 ">Valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e86 d0e53 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e86 d0e55 ">Valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e86 d0e57 ">Valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e111" headers="d0e35 ">Hexa- decimal</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e111 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e111 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e111 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e111 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e111 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e111 d0e47 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e111 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e111 d0e51 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e111 d0e53 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e111 d0e55 ">Valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e111 d0e57 ">Valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e136" headers="d0e35 ">DBCS- open</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e136 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e136 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e136 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e136 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e136 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e136 d0e47 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e136 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e136 d0e51 ">Valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e136 d0e53 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e136 d0e55 ">Valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e136 d0e57 ">Valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e161" headers="d0e35 ">DBCS- either</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e161 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e161 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e161 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e161 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e161 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e161 d0e47 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e161 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e161 d0e51 ">Valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e161 d0e53 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e161 d0e55 ">Valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e161 d0e57 ">Valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e186" headers="d0e35 ">DBCS- only</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e186 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e186 d0e39 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e186 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e186 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e186 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e186 d0e47 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e186 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e186 d0e51 ">Valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e186 d0e53 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e186 d0e55 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e186 d0e57 ">Not valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e211" headers="d0e35 ">DBCS- graphic</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e211 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e211 d0e39 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e211 d0e41 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e211 d0e43 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e211 d0e45 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e211 d0e47 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e211 d0e49 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e211 d0e51 ">Valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e211 d0e53 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e211 d0e55 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e211 d0e57 ">Not valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e236" headers="d0e35 ">UCS2- graphic</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e236 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e236 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e236 d0e41 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e236 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e236 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e236 d0e47 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e236 d0e49 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e236 d0e51 ">Valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e236 d0e53 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e236 d0e55 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e236 d0e57 ">Not valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e261" headers="d0e35 ">Date</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e261 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e261 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e261 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e261 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e261 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e261 d0e47 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e261 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e261 d0e51 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e261 d0e53 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e261 d0e55 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e261 d0e57 ">Not valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e286" headers="d0e35 ">Time</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e286 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e286 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e286 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e286 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e286 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e286 d0e47 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e286 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e286 d0e51 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e286 d0e53 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e286 d0e55 ">Valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e286 d0e57 ">Not valid</td>
|
||
</tr>
|
||
<tr><th align="left" valign="top" width="8.655616942909761%" class="firstcol" id="d0e311" headers="d0e35 ">Time- stamp</th>
|
||
<td align="left" valign="top" width="9.023941068139964%" headers="d0e311 d0e37 ">Not valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e311 d0e39 ">Valid</td>
|
||
<td align="left" valign="top" width="7.734806629834254%" headers="d0e311 d0e41 ">Valid</td>
|
||
<td align="left" valign="top" width="7.918968692449356%" headers="d0e311 d0e43 ">Valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e311 d0e45 ">Valid</td>
|
||
<td align="left" valign="top" width="8.287292817679557%" headers="d0e311 d0e47 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e311 d0e49 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e311 d0e51 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.103130755064457%" headers="d0e311 d0e53 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.47145488029466%" headers="d0e311 d0e55 ">Not valid</td>
|
||
<td align="left" valign="top" width="8.655616942909761%" headers="d0e311 d0e57 ">Valid</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td></tr></table>
|
||
</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>
|
||
</body>
|
||
</html> |