Hi Shirley
I have seen several ways of doing this. The one I use requires some
adjustment from report to report but seems to be the one that is most
logical.
AL AFTER.HP 1^/R.PRINT.HK
AL SK3 R.PRINT.HK2^A
AL AFTER.GET.MAIN
%MIS.QUERY.zcus.npr.macro.library.M.hk.repeat(A)^R.PRINT.HK2
AL AFTER.HK2 ""^/R.PRINT.HK
AL AFTER.HP 1^/R.PRINT.HK
The page header is printed by a separate program from the report
therefore
for you to set a flag that you have started a new page you have to load that
flag into a global variable.
AL SK3 R.PRINT.HK2^A
In this footnote, the SKn should be the number of the last sort index on
the sort selects page. This is done becuase the macro call in the next
footnote is too long to just pass the variable R.PRINT.HK2. In this line
HK2 is the header key you wish to repeat. If you wanted to repeat HK3 then
R.PRINT.HK3 is the variable you would load.
AL AFTER.GET.MAIN
%MIS.QUERY.zcus.npr.macro.library.M.hk.repeat(A)^R.PRINT.HK2
This footnote loads the variable R.PRINT.HK2. The macro is a simple if
statement that will pass back 1 if A exists or if /R.PRINT.HK exists.
IF{A;/R.PRINT.HK}
AL AFTER.HK2 ""^/R.PRINT.HK
This footnote clears the global variable /R.PRINT.HK after the header
key
you want to repeat has been printed and will not be reset until the next
header page is printed.
Hope this Helps
Ken
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 6:42 PM
To: [email protected]
Subject: [MEDITECH-L] NPR question - repeat a header key region
Is it possible to print the header key again if the detail for the key
region carries over to the next page? I'm already using a page header for
grouping by something else so that is not an option.
Shirley Schoberg, MT(ASCP)
Programmer/Analyst
Samaritan Health Services - IS
Corvallis, OR
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
======================================
All messages should be posted in plain text.
HTML will be converted to attachments.
The meditech-l web site is MTUsers.com
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l