When the function does not generate a template

The VCURULE parameter specifies the usage rules for views and criteria sets that apply when the function does not generate a template for the database.

Use the VCURULE parameter on the FMN1POPI macro statement to set one of the following values:

C
A view or criteria set can be used with a database only if it provides one or more layouts for each segment in the database. If it does provide one or more layouts for each segment in the database, the function uses a composite view or criteria set that is created by adding the view or criteria set’s selection information to the static template for the database. So, the static template for the database is used to format the database segments into their individual fields.
R
A view or criteria set can be used with a database only if it has the same fields as the static template for the database. If it does have the same fields as the static template for the database, the function uses the view or criteria set that is specified by the user. So, the view or criteria set is used to format the database segments into their individual fields. However, as the view or criteria set and the static template for the database have the same fields, this is equivalent to using the template to format the database segments into their individual fields.
S
A view or criteria set can be used with a database only if it provides one or more layouts for each segment in the database. If it does provide one or more layouts for each segment in the database, the function uses the view or criteria set that is specified by the user. So, the view or criteria set is used to format the database segments into their individual fields.

The static template for the database is not used.

T
A view or criteria set can be used with a database only if both of these conditions are true:
  • The view or criteria set provides one or more layouts for each segment in the database.
  • The view or criteria set was created for the database OR the view or criteria set and the static template for the database have the same fields.

If the view or criteria set satisfies these conditions, the function uses the view or criteria set that is specified by the user. So, the view or criteria set is used to format the database segments into their individual fields.

Note: VCURULE=T is the default setting, but VCURULE=C is the recommended setting.