IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to find difference between 2 dates in EZtrv


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sant532

New User


Joined: 02 Jun 2008
Posts: 48
Location: India

PostPosted: Wed Sep 16, 2009 12:32 pm
Reply with quote

Hi All,

Is there any built in function in Easytrieve to find the difference between 2 dates in DAYS.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 16, 2009 12:48 pm
Reply with quote

search the forums for "easytrieve date" You might find a few hints ...
( DATECONV and friends )
Back to top
View user's profile Send private message
sant532

New User


Joined: 02 Jun 2008
Posts: 48
Location: India

PostPosted: Wed Sep 16, 2009 2:23 pm
Reply with quote

*******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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 16, 2009 2:27 pm
Reply with quote

there are some topics in the forums on easytrieve macro errors..
but the best thing would be to ask Your support
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Sep 16, 2009 3:36 pm
Reply with quote

Quote:
I used above syntax but am getting
What is "above" logic here?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Sep 16, 2009 3:41 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 16, 2009 9:11 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Sep 18, 2009 12:19 pm
Reply with quote

Searching forum is not that tough, you know... ibmmainframes.com/viewtopic.php?t=26240&highlight=difference
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Amount of days between two dates PL/I & Assembler 8
Search our Forums:

Back to Top