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: 8117
Location: East Dubuque, Illinois, USA

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: 8117
Location: East Dubuque, Illinois, USA

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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm


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