ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafodpref.htm

174 lines
12 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="concept" />
<meta name="DC.Title" content="Display the files used by programs" />
<meta name="abstract" content="Use the Display Program Reference (DSPPGMREF) command to determine which files, data areas, and other programs are used by a program. This information is available for compiled programs only, and can be displayed, printed, or written to a database output file (OUTFILE)." />
<meta name="description" content="Use the Display Program Reference (DSPPGMREF) command to determine which files, data areas, and other programs are used by a program. This information is available for compiled programs only, and can be displayed, printed, or written to a database output file (OUTFILE)." />
<meta name="DC.subject" content="displaying, files used by programs, database file, those used by programs, program, displaying the files used by, Display Program References (DSPPGMREF) command, DSPPGMREF (Display Program References) command, command, CL, DSPPGMREF (Display Program References), Display Program References (DSPPGMREF), program reference" />
<meta name="keywords" content="displaying, files used by programs, database file, those used by programs, program, displaying the files used by, Display Program References (DSPPGMREF) command, DSPPGMREF (Display Program References) command, command, CL, DSPPGMREF (Display Program References), Display Program References (DSPPGMREF), program reference" />
<meta name="DC.Relation" scheme="URI" content="rbafofilexr.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/dsppgmref.htm" />
<meta name="DC.Relation" scheme="URI" content="../rbam6/rbam6clmain.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="rbafodpref" />
<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 files used by programs</title>
</head>
<body id="rbafodpref"><a name="rbafodpref"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Display the files used by programs</h1>
<div><p>Use the Display Program Reference (DSPPGMREF) command to determine
which files, data areas, and other programs are used by a program. This information
is available for compiled programs only, and can be displayed, printed, or
written to a database output file (OUTFILE).</p>
<p>When a program is created, the information about certain objects used in
the program is stored. This information is then available for use with the
DSPPGMREF command.</p>
<p>The following table shows the objects for which the high-level languages
and utilities save information: </p>
<table cellpadding="4" cellspacing="0" border="1" class="tableborder"><tr><td>
<table cellpadding="4" cellspacing="0" summary="" width="100%" border="0"><thead align="left"><tr><th valign="bottom" width="31.551724137931036%" id="d0e57">Language or utility</th>
<th align="center" valign="bottom" width="16.896551724137932%" id="d0e59">Files</th>
<th align="center" valign="bottom" width="17.24137931034483%" id="d0e61">Programs</th>
<th align="center" valign="bottom" width="16.896551724137932%" id="d0e63">Data areas</th>
<th align="center" valign="bottom" width="17.413793103448274%" id="d0e65">See Notes</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">BASIC</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">Yes</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">No</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 ">1</td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">C/400<sup>®</sup> Language</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">No</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">No</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">N/A</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 "> </td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">CL</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">Yes</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">Yes</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 ">2</td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">COBOL/400<sup>®</sup> Language</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">Yes</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">No</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 ">3</td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">CSP</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">Yes</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">No</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 ">4</td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">DFU</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">N/A</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">N/A</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 "> </td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">FORTRAN/400 Language</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">No</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">No</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">N/A</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 "> </td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">Pascal</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">No</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">No</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">N/A</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 "> </td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">PL/I</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">Yes</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">N/A</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 ">3</td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">RPG/400<sup>®</sup> Language</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">Yes</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">Yes</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 ">5</td>
</tr>
<tr><td valign="top" width="31.551724137931036%" headers="d0e57 ">SQL Language</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e59 ">Yes</td>
<td align="center" valign="top" width="17.24137931034483%" headers="d0e61 ">N/A</td>
<td align="center" valign="top" width="16.896551724137932%" headers="d0e63 ">N/A</td>
<td align="center" valign="top" width="17.413793103448274%" headers="d0e65 "> </td>
</tr>
</tbody>
</table>
</td></tr></table>
<div class="note"><span class="notetitle">Notes:</span> <ol><li>Externally described file references, programs, and data
areas are stored.</li>
<li>All system commands that refer to files, programs, or data areas specify
in the command definition that the information should be stored when the command
is compiled in a control language (CL) program. If a variable is used, the
name of the variable is used as the object name (for example, &amp;FILE);
If an expression is used, the name of the object is stored as *EXPR. User-defined
commands can also store the information for files, programs, or data areas
specified on the command. See the description of the FILE, PGM, and DTAARA
parameters on the PARM or ELEM command statements in the Control language
(CL) topic.</li>
<li>The program name is stored only when a literal is used for the program
name (this is a static call, for example, <samp class="codeph">CALL 'PGM1'</samp>), not
when a COBOL/400 identifier
is used for the program name (this is a dynamic call, for example, <samp class="codeph">CALL
PGM1</samp>).</li>
<li>CSP programs also save information for an object of type <samp class="codeph">*MSGF,
*CSPMAP,</samp> and <samp class="codeph">*CSPTBL</samp>.</li>
<li>The use of the local data area is not stored.</li>
</ol>
</div>
<div class="p">The stored file information contains an entry (a number) for the type of
use. In the database file output of the DSPPGMREF command (built when using
the OUTFILE parameter), this is specified as: <dl><dt><strong>Code</strong></dt>
<dd><strong>Meaning</strong></dd>
<dt class="dlterm">1</dt>
<dd>Input</dd>
<dt class="dlterm">2</dt>
<dd>Output</dd>
<dt class="dlterm">3</dt>
<dd>Input and Output</dd>
<dt class="dlterm">4</dt>
<dd>Update</dd>
<dt class="dlterm">8</dt>
<dd>Unspecified</dd>
</dl>
</div>
<p>Combinations of codes are also used. For example, a file coded as a 7 would
be used for input, output, and update.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafofilexr.htm" title="You can display the file attributes for database files and device files using the display table description operation in iSeries Navigator.">Display information about database files</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../rbam6/rbam6clmain.htm">Control language (CL)</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/dsppgmref.htm">Display Program Reference (DSPPGMREF) command</a></div>
</div>
</div>
</body>
</html>