Before you start building your output, make sure that the map storage is initialized to nulls, so that data left there by a previous process is not used inadvertently. If you have read input data using this same map, or one that overlays it, you need to ensure that you have processed or saved this data first. The relationship between input and output maps is discussed in The symbolic input map, and using the same map you used for input is discussed in Sending mapped output after mapped input.
You initialize by moving nulls (X'00') into the structure. The symbolic map structures are defined so that you can refer to the whole map area by the name of the map suffixed by the letter O. You can see this in Figure 104, and, in fact, the statement:
MOVE LOW-VALUES TO QCKMAPO.
would clear the area in which we built the map in the "quick check" example. If you are using the map for both input and output, it may be easier to clear the map one field at a time, as you edit the input (see Handling input errors).
When you obtain map storage with a CICS® GETMAIN instruction, another way to initialize is to use the INITIMG option.
[[ Contents Previous Page | Next Page Index ]]