HEADING AT

Michael Lee mcl_systems@bc.sympatico.ca
Tue, 25 May 1999 16:45:58 -0700


The obvious answer, which I'm sure you've thought of and have reasons not to do,
is to use PAGE HEADING. Now feel free to give me those reasons. The only obvious
one that comes to mind is getting that heading at the begining of your report
and perhaps at the end if you have a FINAL FOOTING on it's own page. If it is
the first problem you might want to try the following (untested) code:

DEFINE X = 1
SORT{ED} ON X ON....

PAGE HEADING .. &
           TAB 10 field1  &
           TAB 10 "      " PRINT AT X...

Hope that helps (and works)...

Michael Lee
MCL Systems Inc.


"Ravenscroft, Wanda L" wrote:

> I have a report that is basically as follows:
>
> access *subfilename
>
> define key-field char*11 = field1 + field2
>
> heading at key-field    &
>         field1          &
>         field2          &
>         field3          &
>         field4
>
> report                  &
>         field5          &
>         field6          &
>         field7          &
>         etc., etc
>
> The report works great with respect to the fact that if all of the report
> statement can't fit on one page, it starts a new page.  The problem is the
> "Report" statement for one "Heading At" statement can go on for several
> pages and I haven't figured out how to get the "Heading At" statement at the
> top of a new page.  Is there a way that I can put the "Heading At" statement
> at the top of each new page?  This way, the user just has to look at the top
> of the page to see what FIELD1, FIELD2, FIELD3 and FIELD4 are rather than
> having to leaf back through several pages.
>
> Thanks
>
> Wanda Ravenscroft
> OpenVMS 6.1-1, Powerhouse 7.10F1
> Analyst Programmer
> Eveready Battery Company
> St. Louis, MO
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
> Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
> powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> This list is closed, thus to post to the list, you must be a subscriber.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.