109 lines
6.6 KiB
HTML
109 lines
6.6 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="task" />
|
|
<meta name="DC.Title" content="Determine the size of a message file" />
|
|
<meta name="abstract" content="Use this topic to determine the size of a message file." />
|
|
<meta name="description" content="Use this topic to determine the size of a message file." />
|
|
<meta name="DC.subject" content="message, size of message file, ALROPT code, entry size, message file, specifying entry size, example, CRTMSGF (Create Message File) command, CRTMSGF (Create Message File) command, Create Message File (CRTMSGF) command, command, CL, CRTMSGF (Create Message File), Create Message File (CRTMSGF), message file, creating" />
|
|
<meta name="keywords" content="message, size of message file, ALROPT code, entry size, message file, specifying entry size, example, CRTMSGF (Create Message File) command, CRTMSGF (Create Message File) command, Create Message File (CRTMSGF) command, command, CL, CRTMSGF (Create Message File), Create Message File (CRTMSGF), message file, creating" />
|
|
<meta name="DC.Relation" scheme="URI" content="cmsgf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/addmsgd.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtmsgf.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="dmsgf" />
|
|
<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>Determine the size of a message file</title>
|
|
</head>
|
|
<body id="dmsgf"><a name="dmsgf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Determine the size of a message file</h1>
|
|
<div><p>Use this topic to determine the size of a message file.</p>
|
|
<div class="section"> <p>You can determine the size of a message by using the following
|
|
formula. (The <span class="cmdname">Add Message Description (ADDMSGD)</span> command
|
|
parameters are given in parentheses.) </p>
|
|
<ul><li>Message index equals 42 bytes base plus the length of the message.</li>
|
|
<li>Message text (MSG) equals 16 bytes base plus the length of the message.</li>
|
|
<li>Message help information (SECLVL), if any, equals 16 bytes base plus the
|
|
length of the message help.</li>
|
|
<li>Formats (FMT), if any, equal 14 bytes plus (3 x number of FMTS).</li>
|
|
<li>Type and length (TYPE and LEN) equal 48 bytes.</li>
|
|
<li>Special value (SPCVAL) equals 2 plus (64 x number of SPCVALs).</li>
|
|
<li>Values (VALUES) equal 32 x (number of VALUES).</li>
|
|
<li>Range (RANGE) equals 64 bytes.</li>
|
|
<li>Relation (REL) equals the length of the relation.</li>
|
|
<li>Default (DFT) equals the length of the default reply.</li>
|
|
<li>Default program, log problem, and dump list (DFTPGM, LOGPRB, DMPLST) equal
|
|
35 plus (2 x number in DMPLST).</li>
|
|
<li>ALROPT equals 12 bytes.</li>
|
|
</ul>
|
|
<p>The smallest possible entry in a message file is 59 bytes and the
|
|
largest possible entry is 5764 bytes. The following table describes the largest
|
|
possible entry:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><tbody><tr><td align="left" valign="top" width="29.499072356215212%">Message index</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">42 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">Message text</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">148 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">Message help text</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">3016 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">99 formats</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">311 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">Type and length</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">48 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">20 special values</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">1282 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">20 values</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">640 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">Default reply value</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">32 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">Default program and dump list</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">233 bytes</td>
|
|
</tr>
|
|
<tr><td align="left" valign="top" width="29.499072356215212%">Alert option</td>
|
|
<td align="left" valign="top" width="70.50092764378478%">12 bytes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>In the following example, the <span class="cmdname">Create Message File (CRTMSGF)</span> command
|
|
creates the message file USRMSG: </p>
|
|
<pre>CRTMSGF MSGF(QGPL/USRMSG) +
|
|
TEXT('Message file for user-created messages')</pre>
|
|
<p>If you are creating a message file to be used with the DSPLY
|
|
operation code in RPG for i5/OS™, the message file must be named QUSERMSG.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cmsgf.htm" title="To create your own predefined messages, you must first create the message file into which the messages are to be placed.">Create a message file</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/addmsgd.htm">Add Message Description (ADDMSGD) command</a></div>
|
|
<div><a href="../cl/crtmsgf.htm">Create Message File (CRTMSGF) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |