DSM Template Services Manual

Template Language
DSM Template Services Manual427187-004
3-21
*IF Edit Descriptor
If the value of an edit descriptor is true, the portion of the template string between the
*IF and the *ELSE is interpreted (or between the *IF and the *ENDIF if no *ELSE is
present). Otherwise, this portion is ignored.
If the edit descriptor is false and an *ELSE is present, the portion of the template string
between the *ELSE and the *ENDIF is interpreted. Otherwise, this portion is ignored.
Refer to an *IF edit descriptor type only from an *IF edit marker (described in Edit
Markers on page 3-19). The *IF edit descriptor should reference only a 16-bit value.
Other values are accepted but might not provide useful results. The syntax for this
descriptor type is:
nn
is a one-digit or two-digit number that identifies the *IF edit descriptor. Within an
MSG statement, nn must be unique.
[ NOT ] TOKENPRESENT
lets you test for either the presence or absence of a token or field. In the case of a
field, TOKENPRESENT tests whether the token is present and, if so, whether the
value of the token is long enough to include the field referred to.
token-ref
is the token or field to test. This includes a token or field referred to in Tokens
(Unqualified) on page 3-4, Qualified Tokens on page 3-4, and Fields on page 3-5.
operator is:
{ < }
{ = }
{ > }
{ <= }
{ >= }
{ <> }
operator
lets you test whether the value of a token or field is less than (<), equal to (=),
greater than (>), greater than or equal to (<=), less than or equal to (>=), or not
equal to (<>) the constant. If the token or field being tested is absent, the value of
the *IF edit descriptor is false.
nn: [ NOT ] TOKENPRESENT ( token-ref )
[ NOT ] token-ref operator constant