COPY - TO statement copies all the elements of a MAP with their respective keys to another MAP of the same type. The original MAP is untouched, but the destination MAP is completely overwritten by the contents of the copied MAP and any elements that existed in it prior to the copy are deleted. In other words, the destination MAP is CLEARed before the copy.
COPY <TEXT-MAP> TO <TEXT-MAP>COPY <NUMBER-MAP> TO <NUMBER-MAP>
DATA:foo IS TEXT MAPbar IS TEXT MAPPROCEDURE:STORE "Hello there!" IN foo:0STORE "How are you?" IN foo:7COPY foo TO barDISPLAY bar:0 " " bar:7 CRLF# Will display "Hello there! How are you?"