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

How to calculate Monday date by giving Current date


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dhanak

New User


Joined: 12 Jan 2008
Posts: 3
Location: omaha., uSa

PostPosted: Sat Jan 12, 2008 7:05 am
Reply with quote

Hi,

I have to run job on any day between TUESDAY to SUNDAY of every week (suppose if i run a job on friday.,ie current date- 011108(MMDDYY). I want to calculate the Moday date (Date-From - 010708) and next week of monday date (DateTo - 011408). Can some one help me on this.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Jan 12, 2008 8:18 am
Reply with quote

Accept pic-9 from day-of-week.
pic-9 1 = monday 7 = sunday

The rest is up to you.
Back to top
View user's profile Send private message
dhanak

New User


Joined: 12 Jan 2008
Posts: 3
Location: omaha., uSa

PostPosted: Sat Jan 12, 2008 8:35 am
Reply with quote

Hi Crag,

I am not understanding your reply. can you explain briefly with some sample code
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
Search our Forums:

Back to Top