next up previous
Next: SCAN scans and processes Up: INSTRUCTIONS Previous: RELEASE manages the message

REPORT allows to write an output report in files

Syntax:

    REPORT <code> ENDREPORT;
This instruction is used to show and file user's built reports of partial or final results of a simulation run. All the instructions between the delimiters REPORT and ENDREPORT are executed. Pascal instructions (WRITE, WRITELN, etc.) and common GLIDER instructions (in particular OUTG) can be included.

Before writing, the GLIDER system asks for the name of the file to write in. CON is used to write in the screen. LPT1 to the line printer. Instructions that write some output will do that in the files indicated by the user just before the writing. After finishing, the system asks if another writing is required. The same writing may be repeated in different files (for instance first in the screen and after in a disk or printer).

If it is desired that some included writing instructions use other file than that indicated for the whole report, the file variable OUTF must be used in those instructions. The user have to assign a file name to this variable in the INIT section (see chapter 3).

This instruction can be used in nodes of any type.

See example 18 (GLIDER examples book).



domingo c
Mon Mar 20 17:36:19 PST 2000