ILE COBOL Language Reference

Examples

The following examples show how the EXTRACT-DATE-TIME intrinsic function can be used:

    COMPUTE integer-1 = FUNCTION EXTRACT-DATE-TIME (date-3 MONTHS).
    COMPUTE integer-1 = FUNCTION EXTRACT-DATE-TIME (date-3 '%m').
    MOVE FUNCTION EXTRACT-DATE-TIME (date-2 '%m/%d') to alphanum-1.

+----------------------------End of IBM Extension----------------------------+


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]