CI Info Functions: Devinfo, Spoolinfo, Volinfo (14392)

device by the OS does not indicate that the device is opened.
5) Terminal Type: The behavior of this item varies with the connection
type (for example, DTC direct connect, PAD, or Telnet/iX). Console
device managers only support type 10.
6) Read TimeOut: This returns the timeout in seconds and depends on
the connection type.
SPOOLINFO
The SPOOLINFO CI function provides information about output and
input spoolfiles stored in the system. It returns string, integer, or Boolean
values depending upon the item queried. It is a CI Interface to
AIFSPFGET.
Syntax
SPOOLINFO(spoolID, item[, status])
Parameters
SPOOLINFO accepts a spoolfile ID, item, and status as parameters. Out
of these, the spoolfile ID and item parameters are mandatory and the
status parameter is optional.
Spoolfile ID
This parameter is of type string. It identifies the target spoolfile as [#]
Onnnn or [#]Innnn, where nnnn is a number. When specifying the
spoolfile ID, # can be retained or omitted. After O or I in the string, a
number should be specified which is the ID of the spoolfile. O and I
identify whether the spoolfile is an output spoolfile or an input spoolfile.
Following are the valid and invalid specifications of spoolfile ID.
Item
This parameter is also of type string. It specifies which information about
a spoolfile is to be returned. There are about 37 items which can be
queried using SPOOLINFO. All the items are not valid for both output
and input spoolfiles. Some items are valid if used only with output
spoolfiles and some items are valid when used with any type of spoolfile.
There is only one item, RESTART which can be used only with input
spoolfile and invalid when used with output spoolfile. The following table
summarizes the list of items which can be queried with SPOOLINFO.
Spoolfile ID Validity Reason
1234 Invalid O/I is not present to identify the type of file.
O1435 Valid Output spoolfile with ID 1435.
#I43435 Valid Input spoolfile with ID 43435.
O15@53 Invalid 15@53 is not a valid number.
Items valid for
Output spoolfiles only Any type of file Input spoolfiles only
Page
5
of
15
Communicator Article
-
Network Printing enhancement
7/30/2008