Previous Topic: How to Use CULLUS14Next Topic: Universal Date Conversion (CULLUS15)


Helpful Hint

CULLUS14 checks for month values in the range 01-12, day values in the range 01-31, and year values in the range 00-99.

Example 1—Gregorian to Julian format

This example shows the CA Culprit parameters required to convert a Gregorian (mmddyy) date to a Julian (yyddd) date.

The following code:

REPORT NO. 99 CULLUS14 mm/dd/yy PAGE 1 GREGORIAN DATE JULIAN DATE 01/10/90 90.010 10/21/56 56.295 12/25/87 87.359 03/01/85 85.060 03/17/94 94.076 09/17/86 86.260 09/08/93 93.251

Example 2—System to Julian format

This example shows the CA Culprit parameters required to retrieve the system date and convert it to a Julian date.

The following code uses two user modules:

Three work fields are required:

REPORT NO. 01 CULLUS10 AND CULLUS14 mm/dd/yy PAGE 1 DATE: 99.278 NAME BALANCE TERRY JANENS E 38,000.00 JOE NGUYA 31,000.00 MARK TIME 33,000.00 ROGER WILCO 80,000.00 ALBERT BREEZE 38,000.00 CAROLYN CROW 37,500.00 BURT LANCHESTER 54,500.00 RENE MAKER 85,000.00