Glb.DC_ Attributes

This series of read-only built-in segment attributes are used in conjunction with the DateConvert logic command. These attributes are set to new values whenever a DateConvert logic statement (with the Format command option) is used. They are cleared before the logic command is executed.

If the DateConvert logic command is executed with the output Format command option, only the built-in segment attribute corresponding to that Format command option is set to the new value.

These attributes are listed in the following table with their primitive and length properties and example values for a particular date.

The Glb.Base and Glb.Century built-in segment attributes are also used in this process.

For the calculation of Glb.DC_WeekNo, weeks start on Sundays, and end on Saturdays. The value of Glb.DC_WeekNo for January 1 of any year is 1.

Name

Primitive

Length

Example

Glb.DC_CCYY_MM_DD

String

10

2000/03/23

Glb.DC_CCYY_MMM_DD

String

11

2000 MAR 23

Glb.DC_CCYYDDD

Number

7

2000083

Glb.DC_CCYYMMDD

Number

8

20000323

Glb.DC_CCYYMMMDD

String

9

2000MAR23

Glb.DC_DayNum

Number

6

015788

Glb.DC_DD_MM_CCYY

String

10

23/03/2000

Glb.DC_DD_MM_YY

String

8

23/03/00

Glb.DC_DD_MMM_CCYY

String

11

23 MAR 2000

Glb.DC_DD_MMM_YY

String

9

23 MAR 00

Glb.DC_DDMMCCYY

Number

8

23032000

Glb.DC_DDMMMCCYY

String

9

23MAR2000

Glb.DC_DDMMMYY

String

7

23MAR00

Glb.DC_DDMMYY

Number

6

230300

Glb.DC_In_Alpha

String

25

2000 MARCH 23

Glb.DC_MM_DD_CCYY

String

10

03/23/2000

Glb.DC_MM_DD_YY

String

8

03/23/00

Glb.DC_MMDDCCYY

Number

8

03232000

Glb.DC_MMDDYY

Number

6

032300

Glb.DC_MMM_DD_CCYY

String

11

MAR 23 2000

Glb.DC_MMM_DD_YY

String

9

MAR 23 00

Glb.DC_MMMDDCCYY

String

9

MAR232000

Glb.DC_MMMDDYY

String

7

MAR2300

Glb.DC_Today

String

15

THURSDAY

Glb.DC_UK_Alpha

String

25

23 MARCH 2000

Glb.DC_US_Alpha

String

25

MARCH 23 2000

Glb.DC_WeekNo

Number

2

13

Glb.DC_YY_MM_DD

String

8

00/03/23

Glb.DC_YY_MMM_DD

String

9

00 MAR 23

Glb.DC_YYDDD

Number

5

00083

Glb.DC_YYMMDD

Number

6

000323

Glb.DC_YYMMMDD

String

7

00MAR23