how to convert Gregorian date to julian date in cobol?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
pra_passion
New Member
Posts: 7
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
Registered Member
Posts: 85
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

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.”