Previous Topic: Data Stream Output ExitNext Topic: Solving User Problems


Network Printer Exit

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:

PARM1:

Address of area for print output (TP stream, max 6000 bytes)

PARM2:

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.

PARM3:

Address of page-eject indicator byte (if X'20' bit is on, new page is indicated)

PARM4:

Binary fullword: number of columns on the network printer

Register usage for the Network Printer Exit:

Register 1

(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.

Register 13

The area in which to save CA Dataquery's registers. You are responsible for saving and restoring the registers.

Register 14

Contains the return address.

Register 15

Contains the exit entry address.