$HPage

From m204wiki
(Redirected from $HPAGE)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The $HPAGE function returns a string of special characters whose length is equal to the value specified as the $HPAGE argument. $HPAGE is usually used in a line replacing header 0 (see Formatting page headers and trailers). When you use $HPAGE in a SET HEADER or SET TRAILER statement, it is replaced by the current page number when the header or trailer is printed.

Example

This $HPAGE statement:

SET HEADER 1 'AUDIT REPORT' WITH 'PAGE' TO - COLUMN 30 WITH $HPAGE (2) TO COLUMN 33

produces a header in the format:

AUDIT REPORT PAGE 13

The number 13 is generated by Model 204. To set the value of the page number to 0 or another value, use the $SETP function.