76 lines
4.9 KiB
HTML
76 lines
4.9 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="reference" />
|
||
|
<meta name="DC.Title" content="Enter DBCS data" />
|
||
|
<meta name="abstract" content="The rules for processing DBCS data across multiple lines are the same on the Enter SQL Statements display and in the SQL prompter." />
|
||
|
<meta name="description" content="The rules for processing DBCS data across multiple lines are the same on the Enter SQL Statements display and in the SQL prompter." />
|
||
|
<meta name="DC.subject" content="interactive SQL, adding DBCS data, prompting, DBCS consideration, DBCS (double-byte character set), considerations in interactive SQL" />
|
||
|
<meta name="keywords" content="interactive SQL, adding DBCS data, prompting, DBCS consideration, DBCS (double-byte character set), considerations in interactive SQL" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafyprompting.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="rbafyprompt5" />
|
||
|
<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>Enter DBCS data</title>
|
||
|
</head>
|
||
|
<body id="rbafyprompt5"><a name="rbafyprompt5"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Enter DBCS data</h1>
|
||
|
<div><p>The rules for processing DBCS data across multiple lines are the
|
||
|
same on the Enter SQL Statements display and in the SQL prompter.</p>
|
||
|
<div class="section"><p>Each line must contain the same number of shift-in and shift-out
|
||
|
characters. When processing a DBCS data string that requires more than one
|
||
|
line for entering, the extra shift-in and shift-out characters are removed.
|
||
|
If the last column on a line contains a shift-in and the first column of the
|
||
|
next line contains a shift-out, the shift-in and shift-out characters are
|
||
|
removed by the prompter when the two lines are assembled. If the last two
|
||
|
columns of a line contain a shift-in followed by a single-byte blank and the
|
||
|
first column of the next line contains a shift-out, the shift-in, blank, shift-out
|
||
|
sequence is removed when the two lines are assembled. This removal allows
|
||
|
DBCS information to be read as one continuous character string.</p>
|
||
|
</div>
|
||
|
<div class="section"><p>As an example, suppose the following WHERE condition were entered.
|
||
|
The shift characters are shown here at the beginning and end of the string
|
||
|
sections on each of the two lines. </p>
|
||
|
</div>
|
||
|
<div class="section"><div class="p"> <pre class="screen"> Specify SELECT Statement
|
||
|
|
||
|
Type SELECT statement information. Press F4 for a list.
|
||
|
|
||
|
FROM tables . . . . . . . . TABLE1_______________________________________
|
||
|
SELECT columns . . . . . . *____________________________________________
|
||
|
WHERE conditions . . . . . COL1 = '<AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQ>
|
||
|
<RRSS>'______________________________________
|
||
|
GROUP BY columns . . . . . _____________________________________________
|
||
|
HAVING conditions . . . . . _____________________________________________
|
||
|
ORDER BY columns . . . . . _____________________________________________
|
||
|
FOR UPDATE OF columns . . . _____________________________________________</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="section"><p>When Enter is pressed, the character string is put together, removing
|
||
|
the extra shift characters. The statement looks like this on the Enter SQL
|
||
|
Statements display:</p>
|
||
|
<pre><strong>SELECT</strong> * <strong>FROM</strong> TABLE1 <strong>WHERE</strong> COL1 = '<AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSS>'</pre>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafyprompting.htm" title="The prompt function helps you supply the necessary information for the syntax of the statement you want to use. The prompt function can be used in any of these statement processing modes: *RUN, *VLD, and *SYN.">Prompting</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|