| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
| Syntax: | SWAP(string-variable-1,string-variable-2) |
| Discussion: |
The SWAP function exchanges the contents of two string variables.
The parentheses are optional. |
| Example: |
SWAP(A$,B$)The contents of A$ and B$ are exchanged. |