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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DATE.CONVERT (DC)<br />

Examples<br />

continued<br />

Date Items Length, Edit Format Example<br />

YYMMDD 6N YYMMDD 980323<br />

CCYYMMDD 8N CCYYMMDD 19980323<br />

YYMMMD 6A YYMMMDD 98MAR23<br />

CCYYMMMDD 9A CCYYMMMDD 1998MAR23<br />

TODAY 15 A MONDAY<br />

WEEKNO 2N 13<br />

In the following example, the value of the specified data item as a relative day number, is<br />

converted, and the results stored in the GLB.DC System Data items. The command status<br />

is stored in GLB.STATUS.<br />

<br />

In the next example, the value of the TRAN-DATE input date, in the format YYMMDD, is<br />

converted to the form CCYY-MMM-DD, and stored in DB-DATE.<br />

<br />

In the next example, the century is non-current, so it is stored in GLB.CENTURY prior to<br />

converting TRAN-DATE, in format YYMMDD. The results are stored in the GLB.DC System<br />

Data items.<br />

<br />

<br />

In the next example, the date, 45 days after ORDERDAY (IN DAYNUM format), is<br />

converted, and is stored in the GLB.DC System Data items.<br />

<br />

In the next example, the date, NUM-DAYS before GLB.TODAY (IN YYMMMD format), is<br />

converted, and is stored in the GLB.DC System Data items. Note that if NUM-DAYS is<br />

signed, its sign will be ignored.<br />

<br />

In the next example, the date held in the data item BIRTH-DATE is converted to a relative<br />

day number, and stored in the GLB.TOTAL System Data item. The value of GLB.STATUS is<br />

directed to SDERROR.<br />

<br />

1-80 v

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

Saved successfully!

Ooh no, something went wrong!