DFSCASE statement overview

The DFSCASE statement defines a map case, a conditional mapping of a set of fields in a segment.

A map case has a name and an ID.

The fields that make up a map case specify the name of the map case that they belong to on the CASENAME parameter in the FIELD statement.

The ID of a map case is specified on the CASEID parameter. In a segment instance, the ID is inserted in a control field to indicate which map case is in use.

A map case ID can be either Cp1047 character data or hexadecimal data. The data type of the ID is specified on the CASEIDTYPE parameter. The length of the control field must be compatible with the data type selected for the map case ID.

Each map case belongs to a map, which is defined by the DFSMAP statement. The map references the control field that determines which map case to use in a given segment instance. The map case specifies the map that it belongs to on the MAPNAME parameter.