ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakd_5.4.0.1/rzakdmstptmsgco.htm

85 lines
5.2 KiB
HTML
Raw Permalink 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="reference" />
<meta name="DC.Title" content="MSGCON (Message Constant) keyword in printer files" />
<meta name="abstract" content="Use this field-level keyword to indicate that the text for a constant field is contained in a message description." />
<meta name="description" content="Use this field-level keyword to indicate that the text for a constant field is contained in a message description." />
<meta name="DC.subject" content="MSGCON (Message Constant) keyword, Message Constant (MSGCON) keyword" />
<meta name="keywords" content="MSGCON (Message Constant) keyword, Message Constant (MSGCON) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.htm" />
<meta name="DC.Relation" scheme="URI" content="constantfields.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzakdmstptmsgco" />
<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>MSGCON (Message Constant) keyword in printer files</title>
</head>
<body id="rzakdmstptmsgco"><a name="rzakdmstptmsgco"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">MSGCON (Message Constant) keyword in printer files</h1>
<div><p>Use this field-level keyword to indicate that the text for a constant
field is contained in a message description.</p>
<div class="section"><p>If the message description does not exist at DDS compile time,
the file is not created. If you change the message description, you must create
the file again.</p>
<div class="p">The format of the keyword is: <pre>MSGCON(length message-ID [library-name/]message-file-name)</pre>
</div>
<p>The
length parameter specifies the maximum length of the message description.
The length can be from 1 to 132 bytes. If the message description is less
than the length specified, the remaining bytes are padded with blanks (hexadecimal
40). If the message description is longer than the length specified, the message
description is truncated to the specified length and a warning message appears.</p>
<p>The
message-ID parameter specifies the message description that contains the text
to use as the value of the constant field.</p>
<p>The message-file-name parameter
identifies the message file that contains the message description. The library-name
parameter is optional.</p>
<p><img src="./delta.gif" alt="Start of change" />You must explicitly specify the
MSGCON keyword for the field. You can use the MSGCON keyword to initialize
a named field, only if you use POSITION (Position) keyword in
the record and use the special name *NONE.<img src="./deltaend.gif" alt="End of change" /></p>
<p>The DFT and MSGCON keywords
are functionally equivalent. If you specify the DFT and MSGCON keywords for
the same field, the MSGCON keyword is ignored and the file is not created.</p>
<p>You
cannot specify the DATE, DFT, EDTCDE, EDTWRD, and TIME keywords with the MSGCON
keyword.</p>
<p>Option indicators are not valid for this keyword. However,
they can be used to condition the field with which this keyword is specified.</p>
</div>
<div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the MSGCON keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD1
00020A 2 1MSGCON(10 MSG0001 MESSAGES/MSGF)
A</pre>
<p>MSG0001 in message file MSGF in library MESSAGES contains
the message text.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="constantfields.htm" title="Constant fields are unnamed fields (positions 19 through 28 must be blank), or fields with a special name (*NONE) when POSITION (Position) keyword is used in the record.">Constant fields in printer files</a></div>
</div>
</div>
</body>
</html>