MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get day of week in Easytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
dtech
Beginner


Joined: 18 May 2006
Posts: 2
Topics: 2

PostPosted: Thu May 18, 2006 11:47 pm    Post subject: How to get day of week in Easytrieve Reply with quote

I'm needing to obtain the day of the week (ex: Sunday) from a numerical date value in an Easytrieve program. Easytrieve doesn't seem to have a date function that does this. Does anyone know the logic/algorithm to do this date conversion?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Fri May 19, 2006 6:19 am    Post subject: Reply with quote

dtech,

Easytrieve does not have any functions to get the day of the week. you can try to implement the Zeller algorithm which is listed here.

Day of week calculation

http://www.terra.es/personal2/grimmer/

Another option is to call COBOL routine from easytrieve which can calculate the day of the week.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group