Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Focus
 Login/Join
 
Silver Member
posted
I have a input file which contains a date field in format I6YMD format. In the output file I want a field which will print the above date + 1 day for each record.
Ex - if the date is 05/01/22 the in output file i want 05/01/23.
but i also need to take care of conditions such as if the date in input file is 31 then i have to increment the month by 1 and make the date as 01. Similarly if the month in input is 12 then i have to increment the year.

Similarly what if i want to increment the year only by 1
Ex - If the input value is 06/01/22 then in output i want it as 07/01/22.


FOCUS 7.1.1/ MF(OS/390)
 
Posts: 40 | Location: Chennai, India | Registered: January 31, 2007Report This Post
Platinum Member
posted Hide Post
DEFINE a field with format YMD and assign you input data to it.
DEFINE a new field which takes the new field and adds 1 (ie 1 day) and then reassign this result to a field with format I6YMD and this is the field for your output file.

If you want to add a year then use one of the Date functions.
 
Posts: 140 | Location: Adelaide South Australia | Registered: October 27, 2006Report This Post
Silver Member
posted Hide Post
Thanx a lot OPALTOSH i was able to solve my query.


FOCUS 7.1.1/ MF(OS/390)
 
Posts: 40 | Location: Chennai, India | Registered: January 31, 2007Report This Post
Expert
posted Hide Post
It's hard to focus when the topic title is "Focus". It probably is a good idea to use a more descriptive title.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders