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.

Appendix C. <strong>SIMSCRIPT</strong> Reference Syntax<br />

open [unit] expression for<br />

⎧input ⎫ ⎡name = expression⎤<br />

⎨output ⎬ ⎢recordsize = expression⎥<br />

⎩ ⎭comma ⎢binary ⎥<br />

⎣noerror ⎦<br />

Exact syntax is implementation-specific.<br />

otherwise - See if.<br />

perform - See call.<br />

permanent entities [ include { permanent entity name } < comma > ]<br />

Preamble statement marking the start of permanent entity declarations.<br />

[ new | old | very old ] preamble<br />

Marks the beginning of the program preamble.<br />

print integer [ double ] lines<br />

[ with { expression | a group of { expression }<br />

< comma > fields } } < comma > ]<br />

[ suppressing from column integer ]<br />

{ thus | like this | as follows }<br />

The integer lines following the print statement are format lines containing text and pictorial<br />

formats for the display of indicated expression values.<br />

The phrases, a group of { expression } < comma > fields and suppressing from column<br />

integer, can only be used within report sections that have column repetition.<br />

323

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

Saved successfully!

Ooh no, something went wrong!