Print Services Manager (PSM) has an NCL interface which enables you to add output to the spool and invoke other PSM facilities, from an installation-written NCL procedure. For example, your application could provide a facility that allows the user to print information, by first requesting PSM to present the Confirm Printer panel on which they can enter a printer name, number of copies, and hold and keep settings, and then sending the information to be printed to the spool. This means the application does not have to be concerned about how to send information to the printer or what to do if the printer is unavailable, as this is all handled by PSM. The application can then request PSM to present the Output Queue showing the status of the user's output.
The PSM NCL interface gives you the flexibility of invoking any of its facilities from anywhere within your NCL applications.
To call PSM from an NCL procedure you must execute NCL procedure $PSCALL.
| Copyright © 2009 CA. All rights reserved. |
|