ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/dspf.htm

214 lines
6.5 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Display File (DSPF)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="DSPF.Top_Of_Page"></a>
<h2>Display File (DSPF)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>Interactive environments (*INTERACT *IPGM *IREXX *EXEC)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#DSPF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#DSPF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#DSPF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="DSPF"></a>
<p>The Display File (DSPF) command allows you to display a stream file or a database file.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="DSPF.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#DSPF.STMF"><b>STMF</b></a></td>
<td valign="top">Stream file, or</td>
<td valign="top"><i>Path name</i></td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#DSPF.FILE"><b>FILE</b></a></td>
<td valign="top">Data base file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Data base file</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#DSPF.MBR"><b>MBR</b></a></td>
<td valign="top">File member</td>
<td valign="top"><i>Name</i>, <b><u>*FIRST</u></b></td>
<td valign="top">Optional, Positional 3</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="DSPF.STMF"></a>
<h3>Stream file, or (STMF)</h3>
<p>Specify the name of the file to be displayed.
</p>
<dl>
<dt><b><i>stream-file-name</i></b></dt>
<dd>Specifies the path name of the object or a pattern to match the name of the object to be displayed.
<p>The object path name can be either a simple name or a name that is qualified with the name of the directory in which the object is located. A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters. A list of all files or subdirectories that match the specified characters will be displayed. If the path name is qualified or contains a pattern, it must be enclosed in apostrophes. If the file name specified is a directory, the a list of the files and subdirectories is displayed. From this list you can edit or display the files in the directory.
</p>
</dd>
</dl>
<p>For more information on specifying path names, refer to "Object naming rules" in the CL concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPF.FILE"></a>
<h3>Data base file (FILE)</h3>
<p>Specifies the name of the database file to be displayed.
</p>
<p>The possible library values are:
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is searched. If no library is specified as the current library for the thread, the QGPL library is searched.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPF.MBR"></a>
<h3>File member (MBR)</h3>
<p>Specifies the name of the database file member to be displayed.
</p>
<p>The possible values are:
</p>
<dl>
<dt><b>*FIRST</b></dt>
<dd>The first member in the database file is displayed.
</dd>
<dt><b><i>member-name</i></b></dt>
<dd>Specify the name of the member to be displayed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPF.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Displaying a Stream File</b>
</p>
<p>
<pre>
DSPF STMF('/mydir/myfile.txt')
</pre>
</p>
<p>This command will display file <i>myfile.txt</i> in directory <i>mydir</i> under the root directory.
</p>
<p><b>Example 2: Displaying a Database File Member</b>
</p>
<p>
<pre>
DSPF FILE(MYLIB/MYFILE) MBR(MYMBR1)
</pre>
</p>
<p>This command will display member MYMBR1 of file MYFILE in library MYLIB.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPFB601</b></dt>
<dd>Display file QDZRUEDT missing or damaged.
</dd>
<dt><b>CPFB604</b></dt>
<dd>Error processing line commands.
</dd>
<dt><b>CPFB605</b></dt>
<dd>Unexpected error opening file.
</dd>
<dt><b>CPFB609</b></dt>
<dd>Cannot allocate work space.
</dd>
<dt><b>CPFB610</b></dt>
<dd>Command not valid.
</dd>
<dt><b>CPFB611</b></dt>
<dd>&amp;1 occurrences of &amp;3 changed. &amp;2 not changed.
</dd>
<dt><b>CPFB612</b></dt>
<dd>Find or replacement string not specified.
</dd>
<dt><b>CPFB613</b></dt>
<dd>Error opening printer file.
</dd>
<dt><b>CPFB614</b></dt>
<dd>File name not specified.
</dd>
<dt><b>CPFB615</b></dt>
<dd>Target line not specified.
</dd>
<dt><b>CPFB617</b></dt>
<dd>CCSID not valid.
</dd>
<dt><b>CPFB618</b></dt>
<dd>Conversion between CCSID &amp;1 and the job's CCSID is not supported.
</dd>
<dt><b>CPFB619</b></dt>
<dd>File is empty.
</dd>
<dt><b>CPFB620</b></dt>
<dd>&amp;2
</dd>
<dt><b>CPFB621</b></dt>
<dd>File cannot be displayed and/or edited.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>