116 lines
7.4 KiB
HTML
116 lines
7.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="Length of parameter value" />
|
||
<meta name="abstract" content="You can specify a length for parameter values using the LEN parameter." />
|
||
<meta name="description" content="You can specify a length for parameter values using the LEN parameter." />
|
||
<meta name="DC.subject" content="parameter, defining, value length, value, length, length of parameter value table, input field length" />
|
||
<meta name="keywords" content="parameter, defining, value length, value, length, length of parameter value table, input field length" />
|
||
<meta name="DC.Relation" scheme="URI" content="defpr.htm" />
|
||
<meta name="DC.Relation" scheme="URI" content="ucall.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="lprvl" />
|
||
<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>Length of parameter value</title>
|
||
</head>
|
||
<body id="lprvl"><a name="lprvl"><!-- --></a>
|
||
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
<h1 class="topictitle1">Length of parameter value</h1>
|
||
<div><p>You can specify a length for parameter values using the LEN parameter.</p>
|
||
<p>For parameter types of date or time, date is always 7 characters long and
|
||
time is always 6 characters long. The following shows the maximum length
|
||
for each parameter type and the default length for each parameter type for
|
||
which you can specify a length.</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" valign="bottom" width="18.6219739292365%" id="d0e41">Data Type</th>
|
||
<th align="left" valign="bottom" width="28.305400372439475%" id="d0e43">Maximum Length</th>
|
||
<th align="left" valign="bottom" width="53.072625698324025%" id="d0e45">Default Length</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*DEC</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">24 (9 decimal positions)</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">15 (5 decimal positions)</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*LGL</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">1</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">1</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*CHAR</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">5000</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">32</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*NAME</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">256</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">10</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*SNAME</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">256</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">10</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*CNAME</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">256</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">10</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*GENERIC</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">256</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">10</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*HEX</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">256</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">1</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*X</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">(256 24 9)</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">(1 15 5)</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*VARNAME</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">11</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">11</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*CMDSTR</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">20K</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">256</td>
|
||
</tr>
|
||
<tr><td align="left" valign="top" width="18.6219739292365%" headers="d0e41 ">*PNAME</td>
|
||
<td align="left" valign="top" width="28.305400372439475%" headers="d0e43 ">5000</td>
|
||
<td align="left" valign="top" width="53.072625698324025%" headers="d0e45 ">32</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p>The maximum length that is shown here is the maximum allowed length for
|
||
these parameter types when the command runs. However, the maximum length
|
||
that is allowed for character constants in the command definition statements
|
||
is 32 characters. This restriction applies to the CONSTANT, DFT, VALUES,
|
||
REL, RANGE, SPCVAL, and SNGVAL parameters. There are specific lengths for
|
||
input fields available when prompting for a CL command. The input field lengths
|
||
are 1 through 12 characters and 17, 25, 32, 50, 80, 132, 256, and 512 characters.
|
||
If a particular parameter has a length that is not allowed,the input field
|
||
displays with the next larger field length. The prompter displays a 512–character
|
||
input field for parameters that can be longer than 512 characters.</p>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="defpr.htm" title="To define a parameter, you must use the PARM statement.">Define parameters</a></div>
|
||
</div>
|
||
<div class="reltasks"><strong>Related tasks</strong><br />
|
||
<div><a href="ucall.htm" title="When the CALL command is issued by a CL procedure, each parameter value passed to the called program can be a character string constant, a numeric constant, a logical constant, or a CL variable.">CALL command</a></div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html> |