117 lines
6.6 KiB
HTML
117 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="Display the values of variables" />
|
|
<meta name="abstract" content="You can display the values of program variables when you are at a breakpoint." />
|
|
<meta name="description" content="You can display the values of program variables when you are at a breakpoint." />
|
|
<meta name="DC.subject" content="program, variable, displaying, displaying value in program, value of variable in a program, DSPPGMVAR (Display Program Variable) command, Display Program Variable (DSPPGMVAR) command, command, CL, DSPPGMVAR (Display Program Variable), Display Program Variable (DSPPGMVAR), program variable" />
|
|
<meta name="keywords" content="program, variable, displaying, displaying value in program, value of variable in a program, DSPPGMVAR (Display Program Variable) command, Display Program Variable (DSPPGMVAR) command, command, CL, DSPPGMVAR (Display Program Variable), Display Program Variable (DSPPGMVAR), program variable" />
|
|
<meta name="DC.Relation" scheme="URI" content="opm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/addbkp.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/dsppgmvar.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="dspva" />
|
|
<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>Display the values of variables</title>
|
|
</head>
|
|
<body id="dspva"><a name="dspva"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Display the values of variables</h1>
|
|
<div><p>You can display the values of program variables when you are at
|
|
a breakpoint.</p>
|
|
<div class="section"> <p>You can have this done automatically on the breakpoint display
|
|
by specifying the variable names on the <span class="cmdname">Add Breakpoint (ADDBKP)</span> command,
|
|
or you can enter the <span class="cmdname">Display Program Variable (DSPPGMVAR)</span> command
|
|
at the breakpoint by pressing F10 to show the command entry display. Only
|
|
10 variables can be specified on one <span class="cmdname">Display Program Variable (DSPPGMVAR)</span> command.
|
|
For character and bit variables, you can tell the system to begin displaying
|
|
the value of the variable starting at a certain position and for a specified
|
|
length. Variables can be displayed in either character or hexadecimal format.
|
|
</p>
|
|
<div class="note"><span class="notetitle">Note:</span> <ol><li>If you specify an array variable, you can do one of the following: <ol type="a"><li>Specify the subscript values of the array element you want to display.
|
|
The subscript values can either be integer values or the names of numeric
|
|
variables in the program.</li>
|
|
<li>Display the entire array by not entering any subscripts.</li>
|
|
<li>Display a single-dimension cross-section of the array by specifying values
|
|
for all subscripts except one, and an asterisk for that one subscript value.</li>
|
|
</ol>
|
|
</li>
|
|
<li>Variable names can be specified as simple or qualified names, but must
|
|
be placed between apostrophes. A qualified name can be specified in either
|
|
of two ways: <ol type="a"><li>Variable names alternating with the special separator words OF or IN,
|
|
ordered from lowest to highest qualification level. A blank must separate
|
|
the variable name and the special separator word.</li>
|
|
<li>Variable names separated by periods, ordered from highest to lowest qualification
|
|
level.</li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<p>The following <span class="cmdname">Display Program Variable (DSPPGMVAR)</span> command
|
|
displays the variable ARBAL used in the program CUS310. CUS310 is the default
|
|
program, so it does not have to be specified. The entire value is to be displayed
|
|
in character format. </p>
|
|
<pre>DSPPGMVAR PGMVAR('&ARBAL')</pre>
|
|
<p>The resulting display looks like this: </p>
|
|
<pre class="screen"> Display Program Variables
|
|
|
|
Program . . . . . . . . . . . . . . . . : CUS310
|
|
Recursion level . . . . . . . . . . . . : 1
|
|
Start position . . . . . . . . . . . . : 1
|
|
Format . . . . . . . . . . . . . . . . : *CHAR
|
|
Length . . . . . . . . . . . . . . . . : *DCL
|
|
|
|
Variable . . . . . . . . . . . . . . . : &ARBAL
|
|
Type . . . . . . . . . . . . . . . . : PACKED
|
|
Length . . . . . . . . . . . . . . . : 5 2
|
|
'610.00'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Press Enter to continue.
|
|
|
|
F3=Exit F12=Cancel
|
|
</pre>
|
|
<p>Some HLLs allow variables to be based on a user-specified pointer
|
|
variable (HLL pointer). If you do not specify an explicit pointer for a based
|
|
variable, the pointer specified in the HLL declaration (if any) is used.
|
|
You must specify an explicit basing pointer if one was not specified in the
|
|
HLL declaration for the based variable. The PGMVAR parameter allows you to
|
|
specify up to five explicit basing pointers when referring to a based variable.
|
|
When multiple basing pointers are specified, the first basing pointer specified
|
|
is used to locate the second basing pointer, the second one is then used to
|
|
locate the third, and so forth. The last pointer in the list of basing pointers
|
|
is used to locate the primary variable.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="opm.htm" title="You can debug your OPM programs by using testing functions.">Debug OPM programs</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/addbkp.htm">Add Breakpoint (ADDBKP) command</a></div>
|
|
<div><a href="../cl/dsppgmvar.htm">Display Program Variable (DSPPGMVAR) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |