CI Info Functions: Devinfo, Spoolinfo, Volinfo (14392)
E.g.: A spoolfile was created at 08:02 AM and 05 secs, then the
output will be
80205.
Notice that the output is not 080205 as the output type is integer
(Leading zeroes are not seen). So, whenever the output integer
has fewer than 6 digits, it has to be interpreted with a required
number of leading zeroes. In the above example 80205, it is
evident that the spoolfile was created at 8 hours, 2 mins and 5
secs.
This can be consistently dealt via the CI as:
E.g.: setvar x decimal(spoolinfo("o123","IntCreateTime))
setvar x rht("000000",6 - len(x)) + x
When used as shown above, x will be CI variable of type string
and it will contain leading 0s if output has fewer than 6 digits.
7. NumPages/Pages
This item returns the number of pages in the spoolfile. A positive
number indicates the actual number of pages in the spoolfile. A
negative number indicates that the spoolfile has never been
printed before, and the number is only an estimation.
8. NumRecords/NumRecs
This item returns the number of records in the spoolfile. The
spoolfile must be past the CREATE state. That is, the spoolfile
must be created successfully. If the spoolfile is in CREATE
state, 0 is returned as number of records for the spoolfile.
9. OpenState
This item returns “OPEN” or “OPEN EXCL” depending upon
whether the spoolfile is currently opened or exclusively opened.
“” (Null string) is returned if the spoolfile is not opened.
10. Private
This item returns whether the spoolfile is a private spoolfile. All
input spoolfiles are created with the private option.
11. Job User Account/JobUserAccount
This item r
eturns “JOB,USER.ACCOUNT” of the creator of the
spoolfile. When there is no jobname specified, only
USER.ACCOUNT is returned.
12. DevRecSize
This item returns the record size of the target device of the
spoolfile in bytes. This is usually 132 for output spoolfiles and
256 for input spoolfiles.
VOLINFO
The VOLINFO CI function returns information about volumes, volume
classes, and volume sets. It is a CI interface to the existing HPVOLINFO
Page
9
of
15
Communicator Article
-
Network Printing enhancement
7/30/2008
http://jazz.external.hp.com/papers/Communicator/7.5/CIInfoFunctions.html