18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

fields, each followed by a varying number of numeric values, might be processed by statements<br />

such as:<br />

while data is not ended<br />

until mode is alpha<br />

do<br />

read NUMBER<br />

.<br />

.<br />

loop<br />

stop<br />

The property double is treated as synonymous with real, while text may be used as a<br />

synonym for alpha.<br />

5. Although free-form input in <strong>SIMSCRIPT</strong> <strong>II.5</strong> ignores record columns or record boundaries,<br />

it is possible to test whether the next data field is positioned at the beginning of a data<br />

record. Perhaps this condition might indicate the start of a new batch of data items. The<br />

condition may be tested for by such logical comparisons as:<br />

if card is not new<br />

until card is new<br />

When there are no further data fields (either none exists or all data have been read and lookahead<br />

is impossible), the system variables have the values shown in table 2-5.<br />

Note: The term card is used for historical reasons . It stands for record.<br />

88

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

Saved successfully!

Ooh no, something went wrong!