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     [SOLVED] QYY to Alpha

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] QYY to Alpha
 Login/Join
 
Platinum Member
posted
Hi,
Need some tips on converting date in QYY to Alpha format.

Thanks.

This message has been edited. Last edited by: Kerry,


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
I imagine that the QYY date is really in integer or alpha format. Or it is a real date field that has been reformatted to QYY.

It is very easy to do but we require a bit more information.


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
Platinum Member
posted Hide Post
Here's one example:

-*
DEFINE FILE CAR
CNTR/I5 WITH CAR = CNTR + 1;
DTE/A8YYMD = DECODE CNTR (1 '20100115' 2 '20100415' 3 '20100715' 4 '20101115');
SD_QYY/QYY = DTE;
T1_QYY/A7 = 'Q' | EDIT(DATECVT(SD_QYY, 'QYY', 'Q'), '9 ') | EDIT(DATECVT(SD_QYY, 'QYY', 'YY'));
END
-*
TABLE FILE CAR
PRINT
CNTR
DTE
SD_QYY
T1_QYY
WHERE RECORDLIMIT EQ 4
END

Jim


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Platinum Member
posted Hide Post
Yes , it is a real date field.
It looks like Q2 2010


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Expert
posted Hide Post
What does the meta-data look like? The Master file information about the field? The values may look like Q2 2010, but the "real" date field is not defined as QYY.

Jim has provided one way to convert the field.


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
Platinum Member
posted Hide Post
Got it with jfr99's suggestion. Thanks a lot!


App Studio Version 8202
windows Platform
SQL Server 2008/2012
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report 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     [SOLVED] QYY to Alpha

Copyright © 1996-2020 Information Builders