ICQCPC15 as Part of the Calling Application

If you do not want users to select a printer, you can have the calling application invoke ICQCPC15 directly. Bypassing the printer selection CLIST, ICQCPC00, the application can do one of the following:
  • Invoke ICQCPC15 with the PLOC and PFORM parameters specifying a single defined printer. In that case, ICQCPC15 can obtain PRINTDS parameters from the print definition.
  • Invoke ICQCPC15 using the NOTABLE parameter, without PLOC and PFORM but specifying a SYSOUT(class) that has a printer associated with it.

In either case, use the DSNAME option of ICQCPC15 to identify the data sets to be printed on the specified printer. Because the printer is not selected, there is no temporary table of PRINTDS values to retrieve. Instead, ICQCPC15 uses any PRINTDS parameters specified at invocation, or else retrieves PRINTDS parameters directly from the print definition.