76 lines
3.8 KiB
HTML
76 lines
3.8 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="Error messages" />
|
|
<meta name="abstract" content="Use these methods to provide error messages on a display file." />
|
|
<meta name="description" content="Use these methods to provide error messages on a display file." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbagsdispfiledsgngide.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakc/rzakcmstdfems.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../rzakc/rzakcmstdfsflms.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="rbagsdspfileerrormsgs" />
|
|
<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>Error messages</title>
|
|
</head>
|
|
<body id="rbagsdspfileerrormsgs"><a name="rbagsdspfileerrormsgs"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Error messages</h1>
|
|
<div><p>Use these methods to provide error messages on a display
|
|
file.</p>
|
|
<ul><li>Specifying text as constant on ERRMSG or SFLMSG keywords <p>Specify the
|
|
text directly as a constant on the DDS keyword. When you want to have more
|
|
than one language, you must duplicate the DDS source code and translate constants
|
|
within the DDS specifications. You can then create a separate display file
|
|
object for each language.</p>
|
|
</li>
|
|
<li>Using predefined messages on ERRMSGID or SFLMSGID keyword <p>When using
|
|
predefined messages instead of constants, you need to have multiple display
|
|
files.</p>
|
|
<p>Instead of using different display files, exchange only the used
|
|
message file by setting the library according to the language that you want
|
|
to use.</p>
|
|
<p>For example:</p>
|
|
<pre>A field-name length type usage EDTCDE(x)
|
|
A 61 ERRMSGID(USR3456 [*libl/]APPMSGF [&MSGFLD2])
|
|
A MSGFLD2 length type P TEXT('Message data field')
|
|
|
|
and
|
|
|
|
ADDMSGD MSGID(USR3456) MSGF(APPTXDENU/APPMSGF)
|
|
MSG('Delivery date &1; is earlier than production end date &2')
|
|
and
|
|
|
|
ADDMSGD MSGID(USR3456) MSGF(APPTXDDEU/APPMSGF)
|
|
MSG('Lieferdatum &1; ist . . .')
|
|
.
|
|
.
|
|
.</pre>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagsdispfiledsgngide.htm" title="Application panels typically consist of the major elements in this topic.">Display file design</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="../rzakc/rzakcmstdfems.htm">ERRMSG (Error Message) and ERRMSGID (Error Message Identifier) keywords</a></div>
|
|
<div><a href="../rzakc/rzakcmstdfsflms.htm">SFLMSG (Subfile Message) and SFLMSGID (Subfile Message Identifier) keywords</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |