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 can we validate the ws-eff-date - one[day] = ws-exp-date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
mainframe_world

New User


Joined: 22 Jan 2010
Posts: 12
Location: delhi

PostPosted: Wed Mar 10, 2010 1:17 am    Post subject: how can we validate the ws-eff-date - one[day] = ws-exp-date
Reply with quote

Hi All,

I need to write the logic to check the effective date - one day = exp-date then in that case i need to perform a action.

eg. i have to check the if i am putting eff-date (010110) and exp-date(123109) which is one day less than effective. If this codition satisfied than i have to perform some condition.

One more thing date is in [mmddyy] format only and wanted to check the privious day.

Thanks
Abhi
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Wed Mar 10, 2010 1:47 am    Post subject:
Reply with quote

If you're writing your program in COBOL, there are intrinsic functions to convert dates to integers and back, allowing addition and subtraction to easily be done. There is a link to the manuals at the top of this page; click on it, find the COBOL Language Reference manual and look for intrinsic functions. If you're using another language, you might be able to use the LE functions, or you may have to write the code yourself.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

PostPosted: Wed Mar 10, 2010 1:50 am    Post subject:
Reply with quote

It's amazing how quickly Y2K has gotten forgotten.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Wed Mar 10, 2010 1:59 am    Post subject:
Reply with quote

Craq, that was 10 whole years ago -- an eternity for managers focused on quarterly results!
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 -> CICS 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