ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/print1b.htm

79 lines
6.1 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">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Spooled File APIs</title>
<!-- Begin Header Records ========================================= -->
<!-- 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. -->
<!-- Change History: -->
<!-- YYMMDD USERID Change description -->
<!-- Print SCRIPT A converted by B2H R4.1 (346) (CMS) by V2KEA304 -->
<!-- at RCHVMW2 on 17 Feb 1999 at 11:05:09 -->
<!-- File restructured for V5R2 -->
<!-- 031111 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>Spooled File APIs</h2>
<p>Spooled file APIs obtain specific information about spooled files. For
example, spooled file APIs can:</p>
<ul>
<li>Return a list of spooled files based on given selection criteria, such as a
user or an output queue.</li>
<li>Provide functions to access a specific spooled file from which the API can
return the attributes and data of a spooled file or create a duplicate of a
specific spooled file.</li>
</ul>
<p>Spooled file APIs are useful in writing applications to clean up, save, and
restore spooled files.</p>
<p>Spooled file APIs include the following:</p>
<!-- ***** NOTE ***** Do not manually update text or links in this section. -->
<!-- Updates made in this section *will* be overlaid by automated tools -->
<!-- Notify User Technologies of needed updates to be made in XML for API finder.-->
<!--***************API BEGIN PASTE***************-->
<ul>
<li><A HREF="QSPCLOSP.htm">Close Spooled File</A> (QSPCLOSP) closes a spooled file opened by the Open Spooled File (QSPOPNSP) API or created by the Create Spooled File (QSPCRTSP) API.</li>
<li><A HREF="QSPCRTSP.htm">Create Spooled File</A> (QSPCRTSP) creates a spooled file. The attributes for the spooled file are based on the values taken from the spooled file attributes parameter. When this spooled file is created, it does not contain any data.</li>
<li><A HREF="QSPGETSP.htm">Get Spooled File Data</A> (QSPGETSP) gets data from an existing spooled file. The existing spooled file must have been opened by the Open Spooled File (QSPOPNSP) API. Data is retrieved from the existing spooled file by buffers (one or more) and stored in a user space. The data in the user space is used as source to the Put Spooled File Data (QSPPUTSP) API, which puts the data in the newly created spooled file.</li>
<li><A HREF="QGSLRSC.htm">List Spooled File AFPDS Resources</A> (QGSLRSC) generates a list of the AFPDS resources found in the specified spooled file and returns the list in a user space.</li>
<li><A HREF="QUSLSPL.htm">List Spooled Files</A> (QUSLSPL) generates a list of spooled files on the system into a user space. The list can include all spooled files or those of specific users, output queues, form types, or user-specified data values.</li>
<li><A HREF="QSPMOVSP.htm">Move Spooled File</A> (QSPMOVSP) moves spooled files from one position to another position within the same output queue or from one output queue to another output queue. The priority and status of the moved spooled file can be affected by the user's priority level and the status of the spooled file.</li>
<li><A HREF="qgyolspl.htm">Open List of Spooled Files</A> (QGYOLSPL) generates a list of spooled files on the system. It creates a list similar to the list created by calling the List Spooled Files (QUSLSPL) API. The list can include all spooled files or those of specific users, output queues, form types, user-specified data values, statuses, printers, or specific jobs. The filtered list can then be sorted depending on the value of the sort parameter. You can specify how many list entries to return when calling this API. At a later time, you can request additional entries from the list using the Get List Entries (QGYGTLE) API. You can close this list by using the Close List (QGYCLST) API.</li>
<li><A HREF="QSPOPNSP.htm">Open Spooled File</A> (QSPOPNSP) opens an existing spooled file. After the existing spooled file is opened, the Get Spooled File Data (QSPGETSP) API can then get the data and put it in the user space.</li>
<li><A HREF="QSPPUTSP.htm">Put Spooled File Data</A> (QSPPUTSP) puts data into a spooled file that was created using the Create Spooled File Data (QSPCRTSP) API. The data put in the spooled file is taken from a user space. The data in the user space can be created by either using the Get Spooled File Data (QSPGETSP) API or a user application.</li>
<li><A HREF="QSPRILSP.htm">Retrieve Identity of Last Spooled File Created</A> (QSPRILSP) returns the complete spooled file identity of the last spooled file created for the current job or thread.</li>
<li><A HREF="QUSRSPLA.htm">Retrieve Spooled File Attributes</A> (QUSRSPLA) returns specific information about a spooled file into a receiver variable. The size of the receiver variable determines the amount of information returned. You can specify the spooled file for which information is returned either with the internal job and spooled file identifiers, or with a specific job name, spooled file name, and spooled file number.</li>
</ul>
<!--***************API END PASTE***************-->
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center">
<a href="#Top_Of_Page">Top</a> |
<a href="print1.htm">Print APIs</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>