Use the Network Printer Exit to control the data stream written to the network printer yourself instead of allowing CA Dataquery to write the data stream to be written to a network printer.
Procedure
To use a Network Printer Exit, you must link DQSYSTBL with entry point DQEXIT. The exit is called each time a message is sent to any Network Printer. You are responsible for building the data stream.
Register 1 points to a parameter list as follows:
Address of area for print output (TP stream, max 6000 bytes)
Address of message image (can contain pseudo attribute bytes (X'00'-X'0D') which normally should print as spaces)
Note: The image area is 3564 bytes long. The exit can determine the number of rows in the image by starting at the last row in the area and searching backwards for the last row that is not entirely spaces.
Address of page-eject indicator byte (if X'20' bit is on, new page is indicated)
Binary fullword: number of columns on the network printer
Register usage for the Network Printer Exit:
(OUTPUT) Must contain the length of the resulting data stream. No I/Os or monitor calls are allowed. The exit must build the data stream at PARM1 and return the length in Register 1.
The area in which to save CA Dataquery's registers. You are responsible for saving and restoring the registers.
Contains the return address.
Contains the exit entry address.
|
Copyright © 2014 CA.
All rights reserved.
|
|