how to convert Gregorian date to julian date in cobol?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
pra_passion
New Member
Posts: 8
Joined: Mon Feb 22, 2016 5:53 pm

how to convert Gregorian date to julian date in cobol?

Post by pra_passion »

Hi,

Need help :: "how to convert Gregorian date to julian date in cobol"?

Code: Select all

COMPUTE WS-INT-DATE  = FUNCTION INTEGER-OF-DATE(WS-GREG-DATE)
     COMPUTE WS-JULN-DATE = FUNCTION DAY-OF-INTEGER(WS-INT-DATE)
User avatar
zum13
Active Member
Posts: 135
Joined: Thu May 04, 2023 12:58 am

Re: how to convert Gregorian date to julian date in cobol?

Post by zum13 »

Hello.

You've got the answer already. The code you've clipped will do the job!
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”