SET DATE


The SET DATE statement places the current date/time in the destination field.

    ••••• SET DATE ••• •••••••••••••••••••••• •••
    (1)            (2) (3)                    (4)

(1) T/F execution conditions

(2) Destination application ID

(3) Destination field name or PDF

(4) Destination occurrence (constant/index)

Using the Statement

Note that to set a date/time field to a constant value, you use the SET command.

Restrictions

The destination field must be a date/time field type.

Related Statements

SET, SET DAY, SET MNTH

Example

In the example below, the current date is supplied for the user if a date is blank.

          *
          *        If blank, set adjustment date to system date
          *
          IF       TAR ADJUST2 ADJ DATE           EQ

    T     SET DATE TAR ADJUST2 ADJ DATE