<"header"
<line> <position> <text_string>
<line> <position> <variable> <format>
&vellip#vdots;
"end"
〈"header"〉
and
<"footer"
<line> <position> <text_string>
<line> <position> <variable> <format>
&vellip#vdots;
"end"
〈"footer"〉
<Line>, <position>, and <format> have the same meaning
as in the print blocks.
set!report height@"report height" The report height (see pg. ) refers to a number of lines of "print"ed lines. It does not include header or footer text.
This report program
report header 1 1 ' Id' 1 10 Name 1 60 'Page: ' 1 66 page_number i5 2 1 ' ' end header select from techs where position = 'Tech 1' print 1 1 id i4 1 10 name a20 end print mid = id print 2 5 'symbol date resistivity' 3 5 '------ ---- -----------' end print select from measures where id = mid sort by symbol print 1 5 symbol a8 1 15 m_date 'yy/mm/dd' 1 25 resistivity f6.2 end print end select print 1 1 ' ' end print end select end report
produces the following report
==29pc
Id Name Page: 1 5 John Jones symbol date resistivity ------ ---- ----------- Cu 88/01/21 11.90 Cu 88/01/21 12.40 Fe 88/03/04 19.40 35 Joe Jackson symbol date resistivity ------ ---- ----------- Al 88/02/10 13.00 Al 88/02/10 14.30