reprint

Purpose

Issue the reprint command to reprint one or more messages that were already successfully printed, but that are not yet confirmed. You can reprint either of the following:
  • A specific message in status WAIT_CONF
  • A complete order in status PRTO_WAIT_CONF
  • All orders of a print queue that are in status PRTO_WAIT_CONF
The reprint command changes the order status of all related orders to PRTO_CLOSED and the status of all related messages as follows:
  • Status of messages in status WAIT_CONF is set to REPRINT
  • Status of messages in status DELETED is not changed
If the print queue is:
Stopped
The messages are not printed until the queue is started.
Started
Depending on the specified command parameters the following orders are reprinted:
  • If you reprinted a specific message by using parameter -msgid or -msg, then the order to which the message belongs is reprinted. However, the corresponding order printout does not contain all the messages of this order, but only the message that was to be reprinted.
  • If you reprinted a complete order by specifying only parameters -qname and -order, then all messages belonging to the specified order are reprinted, and the corresponding order printout contains all messages of this order.
  • If you reprinted all messages in a print queue by specifying only parameter -qname, then all orders in status PRTO_WAIT_CONF belonging to the specified print queue are reprinted, and each order printout contains all messages belonging to this order.
For each reprinted message, the printout indicates the total number of times (including this time) that the message was printed, for example:
Message already printed: Yes (2x)
Required access rights:
CT: DnqPrintOpAccessControl
CO: <print queue>
attr: reprint
Predefined roles that provide required access rights: DnqPrintOp
Issue for OU: Business OU
Issue to service: DNQ_P_CMD

Format

Read syntax diagramSkip visual syntax diagramreprint -msgidmsgid -qnameqname -orderosn -msgmsn

Parameters

-msgid
The ID of the message to be reprinted.
-qname
The name of the print queue containing the message or messages to be reprinted.
-order
The sequence number of the order containing the message or messages to be reprinted. If no -order parameter is specified, all of the messages in the print queue are reprinted.
-msg
The sequence number of the message to be reprinted. If no -msg parameter is specified, all messages in the specified order are reprinted.

Examples

The following command reprints the message with the sequence number 000001 of order 101075 in the print queue OUT.QUEUE:
INST1.BANKA.DNQ_P_CMD>reprint -qname OUT.QUEUE -order 101075 -msg 000001
DNQP1048I The reprint command finished successfully for queue 'OUT.QUEUE';
          order: '101075'; msg_sn: '000001'; OU: 'BANKA'.