Specifying field selection criteria

In a view, you can specify field selection criteria for each layout. Field selection criteria determine which segment occurrences FM/IMS selects for display when browsing or editing.

Field selection criteria are also used in extract criteria sets, to determine which segments are extracted when you use Extract (option 3.3). For more information about extract criteria sets, see Working with Criteria.

To specify field selection criteria, do one of the following actions on the View: Segment Layout panel:

  • Enter a freeform REXX expression in the Sel field. You can scroll to the right or left within the field, using the Right (F11) or Left (F10) function keys, or you can expand the field, using the Expand function key (F4).
  • Enter the 1 primary command, to display the Field Selection Criteria panel and then build your criteria statement using the fields on this panel. Press the Exit function key (F3) to return to the Segment Layout panel
Note: You cannot enter criteria by field for an array element (a data element with an OCCURS clause in COBOL). Instead, you must use the freeform expression for array element criteria.

Related topics