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


Chapter 3 Tools : $RPTPRINT

$RPTPRINT
Prints a report to the medium specified. (C)
Invocation
CALL $RPTPRINT(reportname, media)
 
The name of the report to be printed. Its syntax is C (fixed-length character string) with length 16.
filename – Direct output to the named file.
Its syntax is V (variable-length character string) with length 56.
Usage Notes
$RPTPRINT clears the data from the report tables used in a report after the report is printed. You must insert data into the report tables before every call to $RPTPRINT.
Example
The following rule sends a report to the message log:

 
RPTPRINT_1;
_
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ FORALL EMPLOYEE: | 1
_ EMPL_RPT.* = EMPLOYEE.*; |
_ INSERT EMPL_RPT('EMPLOYEE_RPT'); |
_ END; |
_ CALL $RPTPRINT('EMPLOYEE_RPT','SCR'); | 2
_ ------------------------------------------------------------------------

 
Resulting Output
Pressing PF2 after executing this rule displays the following screen:

 
---------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL ===> P
====NEW PAGE FOR REPORT "EMPLOYEE_RPT"================================
Employees by Department Page 1
LNAME EMPNO DEPTNO
---------------------- ------- ------
CHANG 80003 10
NAPIER 80024 20
SMYTHE 80000
CHESSEL 80020 30
GARZA 80004
CANON 80033 40
CAREY 81001
CHIU 81003
LYNGBAEK 81014

 

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