Glb.Century

Glb.Century is a read-writable built-in segment attribute that is used in conjunction with the DateConvert logic command. If input to the DateConvert logic command does not specify the century or the value zero, set Glb.Century to either the century or the Glb.Zeros built-in segment attribute for initialization.

Date conversion from a relative day number to a date format (using the Format command option of the DateConvert logic command) updates Glb.Century.

If the segment's DC sets Glb.Century property is set to false, Glb.Century is not set, and the century is derived from the Glb.Century_Start built-in segment attribute.

If the segment's DC sets Glb.Century property is set to true, Glb.Century is set to the current century by the complex variant of the DateConvert logic command.

Inconsistent behavior might occur if the segment's DC sets Glb.Century property is set to true, but Glb.Century is not initialized to zero for each transaction. The workaround involves placing the following logic statement at the start of affected logics:

Glb.Century := Glb.Zeros

Refer to Glb.Century_Start, Glb.DC_CC, and DateConvert for more information.

Properties

Length = 4

Primitive = Number