MODE - query some execution mode parameters.

Usage:

iflag = mode(modtyp)

Where:

modtyp
is an integer value specifying the particular mode being tested.
1
test if the program is running in TSS.
2
test if the program is using ASCII.
3
test if the program is using Hex floating point.
iflag
will be 0 if the test is false, 1 if it is true, and -1 if "modtyp" has an invalid value.

Description:

MODE is used to test the runtime condition for a program, batch vs. TSS, BCD vs ASCII, or binary vs hex floating point.

Notes:

The most useful test is for TSS. There is not likely to be a good reason to use BCD, and hex mode may disabled at system startup.

Copyright © 1996, Thinkage Ltd.