Determining control variables before map input

Hello all,

we often manipulate Control variables on certain fields either to protect them, make them input fileds, with intensity… etc.

How is it possible within a module before input to a map to see what is contained in the control variable, in other words, whether the control variable is intensified, input, modifiable, protected, displayed, not displayed etc…

eg .

i could do this

01 #data-cv (C)

move (ad=ON) to #data-cv /* making the data output, non-display

input map ‘testmap’


later if I need to check the control variable before seeing what it does to the field on the map (before input map)

How is it possible to see what is in #data-cv?

Many thanx

REDEFINE a Control Variable as format B2.

Control Variables are bit encoded.

Write yourself a little program with code like:

DEFINE DATA LOCAL
1 #CV (C)
1 REDEFINE #CV
2 #CV-B (B2)
END-DEFINE
*
MOVE (CD=RE) TO #CV
WRITE #CV-B
etc.

You will have a table of values for every possible value for #CV

Then check #CV-B for the value(s) you are interested in.

steve