ILE COBOL Language Reference

Format 3 - Setting External Switches

When Format 3 of the SET statement is executed, the status of each external switch associated with the specified mnemonic-name is turned ON or OFF.

SET Statement - Format 3
 
        .----------------------------------.
        | .-----------------.              |
        V V                 |              |
>>-SET------mnemonic-name-1-+--TO--+-ON--+-+-------------------><
                                   '-OFF-'
 
 
mnemonic-name
Must be associated with an external switch, the status of which can be altered.

For Format 3 each mnemonic-name must be associated with an external switch, the status of which can be altered. The only external switches allowed are the UPSI switches, UPSI-0 through UPSI-7.

The status of each external switch associated with the specified mnemonic-name is modified such that the truth value resultant from evaluation of a condition-name associated with that switch will reflect an on status if the ON phrase is specified, or an off status if the OFF phrase is specified.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]