View previous topic :: View next topic
|
Author |
Message |
sant532
New User
Joined: 02 Jun 2008 Posts: 48 Location: India
|
|
|
|
Hi All,
Is there any built in function in Easytrieve to find the difference between 2 dates in DAYS. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
search the forums for "easytrieve date" You might find a few hints ...
( DATECONV and friends ) |
|
Back to top |
|
|
sant532
New User
Joined: 02 Jun 2008 Posts: 48 Location: India
|
|
|
|
*******B006 MACRO SYSTEM - PDS , ERROR IN MACRO FILE
%DAYSCALC 031009 MMDDYY 031509 MMDDYY WH-100-TOT
I used above syntax but am getting
*******B006 MACRO SYSTEM - PDS , ERROR IN MACRO FILE
Please help! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
there are some topics in the forums on easytrieve macro errors..
but the best thing would be to ask Your support |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
I used above syntax but am getting |
What is "above" logic here? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
1. Few date Macros are available with 'Easytreive addons' (which ofcourse are paid ones). And it seems you are not lucky enough...
2. Actually, You can use the programming function of EZT to calculate the difference between two dates. A small table of the number of days in each month would be a good starting point. The complexity increases if you have large multi-year spans and you really want a high degree of accuracy as you need to account for leap years. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Many organizations have callable routines that provide "date arithmetic". You might ask your seniors or someone in technical support if such routines are already available on the system.
If none already exist, you might consider creating a common callable COBOL routine to return the difference in days between 2 dates. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|