Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $FLUSHPRINT

$FLUSHPRINT
Releases output into the print spool. (C)
Invocation
CALL $FLUSHPRINT
Usage Notes
Calls to $PRINTLINE are printed after the transaction completes.

Exceptions
 
Example
The following rule flushes the print spooler, causing two jobs to be printed to the message log:

 
FLUSHPRINT_1;
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ CALL $SETPRINT(10, 70, 1, 'SCR', 'N'); | 1
_ CALL $PRINTLINE('THIS IS THE FIRST PRINT TRANSACTION.'); | 2
_ CALL $FLUSHPRINT; | 3
_ CALL $PRINTLINE('THIS IS THE SECOND PRINT TRANSACTION.'); | 4
_ ---------------------------------------------------------------------------

 
Pressing PF2 after executing this rule displays the following screen:

 
------------------------- INFORMATIONAL MESSAGE LOG -----------------
COMMAND ===> SCROLL ===> P
 
------------------------------ NEW PAGE ------------------------------
 
Page 1
THIS IS THE FIRST PRINT TRANSACTION
 
 
------------------------------ NEW PAGE ------------------------------
 
Page 2
THIS IS THE SECOND PRINT TRANSACTION

 
If the output is directed to a printer, each of the pages prints as a separate job; each has its own banner pages.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved