Previous Topic: #MAPMOD Status CodesNext Topic: @MODIFY—replaces element values of the database record


#MAPMOD Example

The example of the #MAPMOD statement shown below performs the following functions:

The following #MAPMOD statement shows how to suppress display of default error messages for fields EMPID and DEPTID on the current map.


#MAPMOD TYPE=TEMP,MRB=MAPMRB,                                          *
      FLIST=(FIELD,EMPID FIELD,DEPTID),                                *
      FOR=FLIST,ERRMSG=SUPPRESS

Because this #MAPMOD statement specifies TEMP, error messages for these fields are suppressed for the next mapout only. If PERM (default) were used, the error messages would be suppressed until the program terminated or until the error message specifications were overridden by a subsequent #MAPMOD statement.