GDDM V3R2 Base Application Programming Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Using a printer as an alternate device

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



GDDM enables you to send copies of the primary device's output to an alternate device. You can use a printer as an alternate device and thus, obtain a hard copy of the output to a display terminal. A program for doing this is shown in "Example: Copying screen output to a printer" in topic 20.7.

The DSOPEN calls described in the earlier sections of this topic apply equally to alternate devices and primary ones.

The print control processing options described in "Family-2 output: Print files for GDDM queued printers" in topic 20.3 can be applied to any printer that is being used as an alternate device. Their main use is to set the margins around the printed area. The number-of-copies option (the fourth one in the list) is honored for family-2 printing only.

A device opened for family-4 output can only be used as alternate device if a cell-based device token is specified on the DSOPEN call.

After opening, you make the printer the alternate device using a DSUSE call:


     CALL DSUSE(2,31);           /* Use device 31                    */
                                 /* as an alternate device, to       */
                                 /* receive copies of the primary    */
                                 /* device's output.                 */

You can have only one alternate device in use at a time. A DSUSE call for a new alternate device implicitly drops the alternate device that was in use before the DSUSE.

Five calls, DSCOPY, FSCOPY, GSCOPY, FSLOG, and FSLOGC, send output to the alternate device. They are described below.

Subtopics:

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012