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 calculate Monday date by giving Current date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to calculate Monday date by giving Current date
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    Post subject:
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    Post subject: Reply to: How to calculate Monday date by giving Current dat
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    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 How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
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 How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm


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