61 lines
3.6 KiB
HTML
61 lines
3.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="Example: Display Variables as hexadecimal values" />
|
|
<meta name="abstract" content="You can use the EVAL debug command to display the value of variables in hexadecimal format." />
|
|
<meta name="description" content="You can use the EVAL debug command to display the value of variables in hexadecimal format." />
|
|
<meta name="DC.subject" content="example, displaying variables in hexadecimal format" />
|
|
<meta name="keywords" content="example, displaying variables in hexadecimal format" />
|
|
<meta name="DC.Relation" scheme="URI" content="eval.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="dsphexvar" />
|
|
<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>Example: Display Variables as hexadecimal values</title>
|
|
</head>
|
|
<body id="dsphexvar"><a name="dsphexvar"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Example: Display Variables as hexadecimal values</h1>
|
|
<div><p>You can use the EVAL debug command to display the value of variables
|
|
in hexadecimal format. </p>
|
|
<div class="section"> <p>To display a variable in hexadecimal format, on the debug command
|
|
line, type the following:</p>
|
|
<pre>EVAL variable-name: x number-of-bytes</pre>
|
|
<p><span class="synph"><span class="var">Variable-name</span></span> is the name of the
|
|
variable that you want to display in hexadecimal format. 'x' specifies that
|
|
the variable is to be displayed in hexadecimal format and <span class="synph"><span class="var">number-of-bytes</span></span> indicates
|
|
the number of bytes displayed. If no length is specified after the 'x', the
|
|
size of the variable is used as the length. A minimum of 16 bytes is always
|
|
displayed. If the length of the variable is less than 16 bytes, then the remaining
|
|
space <span>is filled with zeroes</span> until the 16 byte boundary is reached.</p>
|
|
<pre>CL declaration: DCL VAR(&CHAR1) TYPE(*CHAR) LEN(10) VALUE('ABC')
|
|
DCL VAR(&CHAR2) TYPE(*CHAR) LEN(10) VALUE('DEF')
|
|
|
|
Debug command: EVAL &CHAR1:X 32
|
|
|
|
Result:
|
|
00000 C1C2C340 40404040 4040C4C5 C6404040 ABC DEF
|
|
00010 40404040 00000000 00000000 00000000 ............</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="eval.htm" title="You can display the value of variables using the Display Module Source display or the EVAL debug command.">Display variables</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |