LegacyJ CICS and COBOL technology for the J2EE Enterprise Environment

Products     Services     Support     Sales     News     Partners

Academic
Programs

Customer
Information

News &
Information

Technical
Information

White
Papers

About Us

LegacyJ FAQ

How do I  access a java program to convert a date?

The existing COBOL programs CALL with the following syntax:

CALL 'JULGREG' USING WD-JULIAN-DATE WD-GREGORIAN-DATE.

The Julian date is received and converted to a Gregorian date which is needed in our application. What is the recommended method for accomplishing this "by reference" or is there a default?

Answer:

CALL BY REFERENCE is default, so var.fromText("...") from the Java side.   Or it can be returned as the value of the call() method from Java, and use RETURNING MY-VAR on the Cobol side.

Please check the the extra built-in intrinsic date functions, they may already satisfy your requirements.

PERCobol

Home         About Us         Privacy        Legal        
© Copyright LegacyJ Corp. 1998, 2005
All Rights Reserved.

All trademarks are the properties of their respective owners or licensers.