Was this helpful?
Comment Blocks in Archived Reports
RBF generates certain comment blocks in the report specification file. They are the width comment block, JoinDef comment block, and union select comment block. Comment blocks are visible when a report is archived or copied with the copyrep command.
Do not modify comment blocks in RBF reports. Changing a comment block can make the report unusable by RBF, sreport, and Report-Writer. If the report specification file has been archived, you can replace certain comment blocks with Report-Writer statements, if appropriate, as noted in the following subsections.
Width Comment Block
Following is an example of a width comment block:
/* WIDTH 148
DO NOT MODIFY. DOING SO MAY CAUSE REPORT TO BE
       UNUSABLE.
*/
This comment block, which saves the report width, is generated for all RBF reports. If the report is archived and you want to override its width by using the .pagewidth Report-Writer statement, delete all three comment lines. For additional information, see the chapter “Report-Writer Statements.”
JoinDef Comment Block
The following is an example of a JoinDef comment block:
/*
DO NOT MODIFY. DOING SO MAY CAUSE REPORT TO BE
       UNUSABLE.
*
* md
*/
RBF generates the JoinDef comment block for JoinDef reports only. You cannot modify or delete this comment block.
Union Select Comment Block
The following is an example of a union select comment block:
/*
DO NOT MODIFY. DOING SO MAY CAUSE REPORT TO BE
        UNUSABLE.
*
The union clause is commented out because a selection
criteria on a detail table is specified.
*/
/*
union select poheader.orderno, poheader.orddate,
       poheader.vendorno, poheader.invoiceno,
       poheader.status,'' as partno,' ' as qty,
       ' ' as unit_pr,' ' as unit_pr, ' ' as det_tot
       from poheader poheader where not exists(select *
       from podettot podettot podettot.orderno '$det_tot'))
*/
RBF generates the union select comment block for Master/Detail JoinDef reports that have a selection criteria on a column in a detail table. You must not modify or delete this comment block.
Last modified date: 04/03/2024