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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Difference in Months using YYM Format in Dialogue Manager

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Difference in Months using YYM Format in Dialogue Manager
 Login/Join
 
Silver Member
posted
Hi,

Does anyone know if this is possible?

Anyone hate dates as much as I do? Mad

This is basically what I want to do (in dialogue manger):

DATE1 = 200801
DATE2 = 200712

DATE1 - DATE2 = 1

DATEDIF does not seem to work with YYM format...
DATECVT does not seem to like YYM format either.

Thanks for any and all help.

Sincerely,

Date Challenged Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
Expert
posted Hide Post
Use the 'legacy' function YM:

YM(fromdate, todate, outfield)

-SET &ECHO=ALL;

-SET &DATE1 = 200801;
-SET &DATE2 = 200712;

-SET &DATEDIF = YM(&DATE2, &DATE1, 'I6YYM');

-TYPE &DATE1 &DATE2 &DATEDIF



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
Virtuoso
posted Hide Post
Hi Krysti

The only reason to hate dates is because you grow older every day....LOL

I have advised this before, buy the book "almost 1001 Ways to Work with Dates in WebFOCUS"
It will cost you 25 $ and it's worth all the money.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Silver Member
posted Hide Post
Francis,

You are awesome!!! Thank you so much! Cool

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
Silver Member
posted Hide Post
Frank,

Thanks for the reminder about the book. I think someone here might have a copy of that.

I think I'm finally starting to understand better what does and doesn't work with what.

That YM function was one of the last pieces of the puzzle... well, at least that's what I think right now anyway!

Thanks for the advice. Smiler

Krysti


WF 767
 
Posts: 34 | Location: Chicago, IL | Registered: September 02, 2004Report This Post
Expert
posted Hide Post
quote:
-SET &DATEDIF = YM(&DATE2, &DATE1, 'I6YYM');


This is a nit but the outfield is not a date but an integer and as such, the format should be 'In' e.g. 'I2'.

Also, Krysti, check out the Legacy Dates functions in the functions manual for things you can do with dates in Dialogue Manager.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
quote:
-SET &DATEDIF = YM(&DATE2, &DATE1, 'I6YYM');


I6YYM is an integer, not a date, but you're right, I could have coded it

-SET &ECHO=ALL;

-SET &DATE1 = 200801;
-SET &DATE2 = 200712;

-SET &DATEDIF = YM(&DATE2, &DATE1, 'I4');

-TYPE &DATE1 &DATE2 &DATEDIF


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
Virtuoso
posted Hide Post
Thank you Ginny.

From one nit picker to another.. Wink


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
You are most welcome, Alan.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Difference in Months using YYM Format in Dialogue Manager

Copyright © 1996-2020 Information Builders