Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to get the day( sun/mon/etc) from date????

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
m_lekshmi13

New User


Joined: 23 Apr 2005
Posts: 6

PostPosted: Sat Apr 23, 2005 12:45 pm    Post subject: how to get the day( sun/mon/etc) from date????
Reply with quote

a date will be inputted i should get the particular day of the week
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Apr 24, 2005 4:28 am    Post subject:
Reply with quote

Pick any past date that is a Sunday; subtract your date from it using one of the date intrinsic functions. Divide by 7. The remainder will be:

0 if your day is Sunday
1 if your day is Monday
.
.
.
6 if your day is Saturday
Back to top
View user's profile Send private message
m_lekshmi13

New User


Joined: 23 Apr 2005
Posts: 6

PostPosted: Mon Apr 25, 2005 10:08 am    Post subject: Re: how to get the day( sun/mon/etc) from date????
Reply with quote

thanx jack for ur suggestion
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Add system date inside of a PS file a... pramitdas DFSORT/ICETOOL 5 Sun Aug 28, 2016 12:06 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us