doubts programming with maps - information from two files

In the map editor, double-click the data field, then click the “Attributes…” button.

sorry I could not explain what I wanted

i wanted to change the attribute at runtime,
eg:

if # update = ‘NO’
input (ad = o) using map ‘map2’
else
input using map ‘map2’
end-if

Change attribute of one or more fields that are on map

how to do this? or can not?

You use Control Variables for this. Define #DATA-CV (C) in your program, then assign it to either (AD=D) or (AD=P), as needed. Attach the CV to one or more fields in the map.

Typically there is one CV for the keys and one for the data fields that switch from modifiable to protected.