HP3000-L Archives

February 2006, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
donna garverick <[log in to unmask]>
Reply To:
Date:
Wed, 8 Feb 2006 13:55:21 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
--- Eben Yong <[log in to unmask]> wrote:

> Would someone pls share their COBOL code that will calculate the 
> difference between two given dates, and return the results in terms
> of years, months, and days?

i like this script:
http://invent3k.external.hp.com/~MGR.GARVERIC/xeqs/doy.txt

it can be easily called from a cobol program.  even better, you can
probably wrap doy in another ci script.  you call your script with your
two dates...and then pick-up the return variables....formatted as you
desire.       - 

Donna Garverick, HP-CSA   Sr. System Programmer
dgarverick -at- longs -dot- com
925-210-6631              Longs Drug Stores

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2