Show / Hide Table of Contents

Write


General Operation Statement

The Write statement notates information to a Write file. Write files must first be defined in the External Files menu. The next item written to the file appears immediately after this item. The Write statement always appends to the file unless the file is Reset. This holds true for multiple replications as well as single, independent runs. Any file that is written to with the Write statement automatically becomes a text file and has an end of file marker attached automatically to the end when it is closed.

Syntax

Write <file ID>, <string or numeric expression>
{,<maximum digits before decimal>,
<digits after decimal>}

Syntax Example

Write Rpt,"EntA Complete at:"

Parameters

<file ID>

The file name as defined in the External Files menu.

<string or numeric expression>

The string or numeric expression to be written to the file. In the output file, quotes are automatically added to string expressions so that most spreadsheet programs can easily read the file.

<maximum digits before decimal>

An optional field that defines the maximum number of digits before the decimal. This value is used to line up any numeric values into columns on the decimal point. This value may be any numeric expression.

<digits after decimal>

An optional field that defines the number of spaces to save after the decimal point. Use this option to line up any labels appearing after numbers.

Remarks

The maximum digits sum before and after the decimal must be less than 20.

In This Article
Back to top Generated by DocFX