18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

TOTAL ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **<br />

** ***<br />

end '' REPORT SECTION<br />

stop<br />

end<br />

_______________________________________________________________________________<br />

3.7.1 Page Heading Control<br />

Two further variables, maintained for each output unit, allow page heading control to be exercised<br />

throughout a program, rather than just within report sections. One of these variables, heading.v,<br />

is an example of the use of a subprogram variable. If the name of a user-written page titling routine<br />

is assigned to the heading.v variable for any unit, control will be automatically passed to this<br />

routine as every new page is begun. This is done by statements such as:<br />

use 2 for output<br />

let heading.v = 'TITLE.ROUTINE'<br />

A routine of the name TITLE.ROUTINE must, of course, be included in the program. This routine<br />

may contain any desired print or write statements. Routine names may be assigned to<br />

heading.v at any time. Different units may each have their own titling routines. Titling may be<br />

suppressed by assigning a value of zero to the appropriate heading.v variable. A second<br />

variable, also maintained for each output unit, is pagecol.v. If this has a nonzero value, for any<br />

unit, it is taken to specify the starting column on the first line of each page where the value of the<br />

current page count, page.v, is to be printed in the format PAGE ****.<br />

136

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!