Previous Topic: CONVERT FunctionNext Topic: CTSEDATE Date Function Calls


Date Processing

The CTSEDATE date subroutine can be called from your CA Earl program to provide date manipulation functions for date fields retrieved from the CA 1 TMC.

The following fields are stored in the CA 1 CA Earl record and may be used in date manipulations:

Common Area

EXPDT

The expiration date for the volume

P_EXP_TYPDAT

A field containing the CA 1 Version 5.1 expiration date type:

0—Zeros

4— Internal Julian date

8—Old Julian date format

12—FOREIGN (Non-CA 1 Control)

16—LDATE/ddd (Days Since Last Used Control)

20—CATALOG (Catalog Control)

24—CYCLE/ccc (Cycle Control)

28—PERMANENT (Permanent Retention Control)

32—CATLG/ddd (Catalog Days Control)

36—USER/uuu (User Control)

40—STATS/sss (Status Control)

Note: In many instances, you must know the type of expiration date for a volume to perform any meaningful date calculations based on EXPDT.

CDATE

Date that volume was created

LDATE

Date that volume was last used

DATECLN

Date that tape was last cleaned

BTHDATE

Date that tape was first used

MOVEDATE

Date that tape was moved out

RUNDATE

Current date

RUNTIME

Current time

CA 1 Specific Area

AUDATE

Date that volume was last updated.