Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to find difference between 2 dates in EZtrv

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: how to find difference between 2 dates in EZtrv
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Sep 16, 2009 12:48 pm    Post subject: Reply to: how to find difference between 2 dates in EZtrv
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    Post subject: Reply to: how to find difference between 2 dates in EZtrv
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed Sep 16, 2009 2:27 pm    Post subject: Reply to: how to find difference between 2 dates in EZtrv
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

Senior Member


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

PostPosted: Wed Sep 16, 2009 3:36 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Sep 16, 2009 3:41 pm    Post subject:
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

Site Director


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

PostPosted: Wed Sep 16, 2009 9:11 pm    Post subject:
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

Senior Member


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

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

Searching forum is not that tough, you know... http://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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us