| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
When used on a source program line, the ampersand permits multiple statements to be written on a single line. There is no limit to the number of statements that can appear on one source line (other than the editor's line length limitation).
Note: The ampersand character can be used in all divisions of an MTB source program.
Also see Underscore and ampersand.
Example 1:
LET A=10 & LET B=20 & LET C=30This example shows how three assignment statements can be written on a single source line.
Example 2:
LENGTH 8.2 & LOCAL CRLIMITThis example shows how two Data Division statements (LENGTH and LOCAL) can be written on a single source line.
Example 3:
IF ARTOTAL GT CREDIT THEN PRINT (0) "OVER THE LIMIT" & GOTO 1000This example shows how multiple statements (PRINT and GOTO) can be written after the THEN clause of an IF statement.