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


Chapter 3 Tools : $RPTPARMS

$RPTPARMS
Controls explicitly the physical output of a report. (C)
Invocation
CALL $RPTPARMS(reportname, length, width, eject, pagenumber)
 
Its syntax is C (fixed-length character string), with length 16.
Y – Specifies that a new page should be started for this report. This applies when more than one report is printed in the same transaction.
N – Specifies that a new page should not be started for this report. This applies when more than one report is printed in the same transaction.
Positive integer – Specifies the start page number to be used if more than one report is printed in a transaction.
'' – Two single quotes indicate that the page numbers are to run consecutively through all the reports.
Usage Notes
A number specified in pagenumber overrides the default page numbering.
Example
The following rule prints the report as specified:

 
RPTPARMS_1;
_
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ CALL $RPTPARMS('EMPLOYEE_RPT',10, 25, 'Y', ''); | 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 the rule displays the following screen:

 
LNAME
----------------------
CHANG
NAPIER
SMYTHE
CHESSEL
GARZA
CANON
CAREY
CHIU
LYNGBAEK
KINGSTON
PASTARINA
ROTERDAM
TOWENSEND
NELSON
TOWNSEND

 

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