Open Print Application (QUIOPNPA) API


  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Open Print Application (QUIOPNPA) API initiates a UIM print application by opening the panel group that the application program specifies. The QUIOPNPA API and the Close Application (QUICLOA) API must be used in pairs to open and close each UIM print application.

Multiple applications can be opened at the same time. Each open application contains a complete set of dialog variables and active lists, and is independent of other open applications. The same panel group can be opened more than once per job, but each call of the QUIOPNPA API initiates a new UIM print application and returns a unique application handle.

Authorities and Locks

Library Authority
*READ
Panel Group Authority
*USE
Panel Group Lock
*SHRRD
Printer Device File Authority
*USE
Printer Device File Lock
*SHRNUP

Required Parameter Group

Application handle
OUTPUT; CHAR(8)

The application handle for the open application. The Open Display Application (QUIOPNDA) API returns a unique handle for each application opened. This handle must be provided as a parameter to every other UIM API that operates on the application, including the QUICLOA API, which must be used to close the application.

Qualified panel group name
INPUT; CHAR(20)

The name of the *PNLGRP object opened for this UIM application. The first 10 characters contain the name of the *PNLGRP object, and the second 10 characters contain the name of the library in which the panel group resides. These special values can be used for the library name:


Application scope
INPUT; BINARY(4)

The scope of the resources for the application. The UIM uses the scope to determine whether or not to automatically close the application when reclaim resource processing is performed through the Reclaim Resource (RCLRSC) command, the Reclaim Activation Group (RCLACTGRP) command, or the End Request (ENDRQS) command. During reclaim resource processing, the UIM closes all applications whose scope is no longer active.

One of the following values must be used:


Exit parameter interface
INPUT; BINARY(4)

The type of parameter interface used with exit programs and programs called as a result of the CALL dialog command for the UIM application being opened.

All exit and CALL programs receive a single parameter or multiple parameters, which are space pointers to information describing the state of the UIM application.

One of the following values must be used:

For a detailed description of the exit parameter lists, and for a description of the type of structure passed for each type of exit and CALL program, see User Interface Manager Exit Programs.

Qualified name of printer device file
INPUT; CHAR(20)

The name of the printer device file used in print operations. The first 10 characters contain the *FILE object name, and the second 10 characters contain the name of the library in which the printer device file resides. These special values can be used for the library name:


Alternative file name
INPUT; CHAR(10)

An alternative name for the spooled file. The following special value can be used:


Share open data path
INPUT; CHAR(1)

Determines whether or not the printer device file's open data path (ODP) is shared. Sharing the ODP allows multiple UIM applications to print to the same spooled file. One of the following values must be used:


User data
INPUT; CHAR(10)

User data associated with the spooled file. This data becomes an attribute of the spooled file. The following special values can be used:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Optional Parameter Group

Open data receiver
OUTPUT; CHAR(*)

The receiver variable that is to receive the open data information requested. For the format of the open data receiver variable, see Format of Data Returned.

Length of open data receiver
INPUT; BINARY(4)

The amount of data the application program is prepared to receive. If the length specified is larger than the amount of data available, the receiver is not changed beyond the amount of data available. If the length specified is greater than the actual length of the open data receiver parameter, unpredictable results may occur.

Length of available open data
OUTPUT; BINARY(4)

The length of all open data available. All available open data is returned if enough space is provided.


Format of Data Returned

The format of the data available, returned in the open data receiver parameter, is as follows:

One of the following values is returned:


Error Messages



API introduced: V2R2

[ Back to top | User Interface Manager APIs | APIs by category ]