Top
PowerFORM Runtime V11.0 Reference
FUJITSU Software

B.1.2 Abort-printing procedure

All the data contained on the page that was being processed when the "Cancel" button was selected is invalidated. However, pages for which processing has already completed are printed.

The printing stop operation is validated at the second or later output operation. At the first output operation, it is not possible to determine whether the "Cancel" button was selected. If the second or later output operation terminates abnormally. The application program must check FILE STATUS clause. When printing has aborted, the application program must close the printer.

If printing has aborted, execute the close operation.

Figure B.2 shows the abort-printing procedure.

Figure B.2 Abort printing procedure

The flow shown in Figure B.2 is as follows:

  1. Open

    The printer is opened.

  2. Write

  3. Write

    Fields or field groups are printed in the partition output mode.

  4. Write stop

    Whether printing has aborted is checked using the Obtaining the return code function.

    If a descriptor is switched during output processing, another print job may interrupt.

  5. Close

    The printer is closed.