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: 7997
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: 7997
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


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