Previous Topic: Mapping Services, Mapping Support, and NCL Processing

Next Topic: Sourcing Data

Connection to Mapping Support

An MDO is usually attached to mapping support at the same time it is created or data is first placed into it. The MAP= operand is available on many verbs and is used to attach a map to an MDO.

Example: Connect to Mapping Support

&ASSIGN MDO=xxx MAP=MYMAP
                -* This creates the MDO if it didn't already
                -* exist, and assigns a map to it.
&FILE GET ID=FILEID MDO=yyy MAP=MYMAP2
                 -* This creates the MDO if it didn't
                 -* exist, places data from the file record into
                 -* it, and attaches the map to it.
&APPC SEND...  VARS=a* MAP=MYMAP2
                 -* This transmits the data in the variables, and
                 -* the mapname. 
&APPC RECEIVE...  MDO=zzz
                 -* This receives the data into the MDO, and
                 -* automatically attaches any map received to the
                 -* MDO as well.