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


Chapter 3 Tools : $RPTIMMEDIATE

$RPTIMMEDIATE
Sends the records to the output as they are read, without sorting. (C)
Invocation
CALL $RPTIMMEDIATE(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
$RPTIMMEDIATE is ignored if the report definition requires more than one pass over the report tables, that is, if sorting is required or if there are derived fields.
$RPTPRINT must be called to send the prepared output to be printed. It turns off $RPTIMMEDIATE processing after it completes.
Example
The following rule sends a report to the message log:

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

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

 
---------------------- INFORMATIONAL MESSAGE LOG ------------------------------
COMMAND ===> SCROLL ===> P
Employees by Department Page 1
LNAME EMPNO DEPTNO
---------------------- ------- ------
SMYTHE 80000 20
ROTERDAM 80002 50
CHANG 80003 10
GARZA 80004 30
TOWNSEND 80014 70
PASTARINA 80019 50
CHESSEL 80020 30
TOWENSEND 80021 50
NAPIER 80024 20
CANON 80033 40
NELSON 81000 60
CAREY 81001 40
CHIU 81003 40
LYNGBAEK 81014 40

 

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