18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DATE.CONVERT (DC)<br />

Restrictions<br />

The following restrictions apply to the DATE.CONVERT; command:<br />

$ The handling of signed numerics in Group items by the DATE.CONVERT; command<br />

varies, depending on the compiler implementation. If you use numeric items within a<br />

Group for handling dates, they should be unsigned.<br />

$ There is a limit of 999999 days conversion on relative day number, starting from 1<br />

January of your base year.<br />

$ Numeric inputs to the DATE.CONVERT; cannot be more than 23 characters in length.<br />

Use of GLB.BASE and GLB.CENTURY<br />

The conversion is based upon a base date defined by the System Data items GLB.BASE,<br />

GLB.CENTURY, and GLB.CENTURY-START.<br />

How GLB.BASE is used<br />

GLB.BASE is used in the following ways:<br />

$ GLB.BASE is set on your Primary Specification Options screen, when defining your<br />

<strong>LINC</strong> Specification. The base year defaults to 1957. The valid range is 1 through 9999.<br />

$ The relative day number of January 1 of the base year is 0. The relative day number<br />

field is a six-digit numeric field.<br />

$ Dates prior to the base year are invalid. However, as described in "Deducing the<br />

Century for Six Digit Dates", the value of GLB.CENTURY may be adjusted<br />

automatically (if the value of GLB.CENTURY is zero or is the same century as<br />

GLB.BASE) to ensure that dates are valid. See also ‘‘Invalid Input Dates’’, later in this<br />

section.<br />

$ You can define the working range of dates (of 100 years) for your <strong>LINC</strong> System by<br />

using the System Data item, GLB.CENTURY-START, and by using the Supervisor<br />

command SCENTURY. The working range is used to interpret six digits dates, as<br />

described in "Deducing the Century for Six Digit Dates".<br />

Deducing the Century for Six Digit Dates<br />

The value of GLB.CENTURY can be set before the DATE.CONVERT; command, if your<br />

input date does not contain the century (it is a six digit date). This is required if the century<br />

of the input date is different from the <strong>LINC</strong> default century.<br />

When GLB.CENTURY is zero or is the same century as GLB.CENTURY-START, date<br />

conversion sets GLB.CENTURY, as follows:<br />

$ If the year is equal to or greater than GLB.CENTURY-START year, then<br />

GLB.CENTURY is not set.<br />

1-76 v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!