Previous Topic: TO_EXPLODED  Function—Convert Internal Date to Exploded FormatNext Topic: FROM_EXTERNAL Function—Convert CA Earl Date to CA 1 Date


SET_FORMAT Function—Change External Date Format

Use the SET_FORMAT function to change the desired external date format. Remember that before you can issue the FROM_EXTERNAL date request, you must tell CTSEDATE the format of the external date. The SET_FORMAT function is provided for this purpose.

Additionally, you may use the SET_FORMAT function to set the desired output date format for internal CA 1 dates that you choose to print on CA Earl reports.

DEF FUNCTION     (X 80) = NONE
DEF DATE_FMT     (X 10) = NONE
SET FUNCTION = 'SET_FORMAT'
SET DATE_FMT = 'MMMDD YYYY'

CALL CTSEDATE USING FUNCTION
                    DATE_FMT

Note: When the CA 1 interface to CA Earl is first invoked, the SET is initialized to your installation DEFAULT setting. Use the SET_FORMAT function to change to your desired date format.