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     DateCvt not working after upgrade 7.6.7 from 5.3

Read-Only Read-Only Topic
Go
Search
Notify
Tools
DateCvt not working after upgrade 7.6.7 from 5.3
 Login/Join
 
Member
posted
I have an input file and am using DATECVT to extract month, day and year
CREATE_MONTH etc. no longer returns correct data after upgrade.
Any help



DEFINE FILE RS_NET_ALL
CREATE_MONTH/M = DATECVT(CREATE_DATE, 'MDYY', 'M');
CREATE_DAY/D= DATECVT (CREATE_DATE , 'MDYY', 'D' );
CREATE_YEAR/YY = DATECVT (CREATE_DATE, 'MDYY', 'YY');
CREATE_MYY/MYY = DATECVT (CREATE_DATE, 'MDYY', 'MYY');
 
Posts: 1 | Registered: February 04, 2009Report This Post
Virtuoso
posted Hide Post
I wonder if this worked before the upgrade.

As far as I know DATECVT converts p.e. I8YYMD to YYMD so

NEWDATE/YYMD=DATECVT('&LETTING','A6MDY','YYMD');

Once you have converted it to a smartdate the next step might be

CREATEMONTH/M=NEWDATE;
etc




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
Expert
posted Hide Post
According to documentation the syntax is correct, so call it in and raise a case with tech support on InfoResponse, after first double checking to make sure that your input file isn't the cause.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
[Tony is right, and for me this works, but to be honest I found some strange thing too

The field LSTDAT is a smartdate field formatted DMYY.
As you can see it does not matter what format I give in the input field for this formula.

But in this case also the formula

NEWD/D=LSTDAT would give me the correct result.


DEFINE FILE CLIFON
CREATE_MONTH/M = DATECVT(LSTDAT, 'MDYY', 'M');
CREATE_DAY/D= DATECVT (LSTDAT , 'DMYY', 'D' );
CREATE_YEAR/YY = DATECVT (LSTDAT, 'MDYY', 'YY');
CREATE_MYY/MYY = DATECVT (LSTDAT, 'YYMD', 'MYY');
END
TABLE FILE CLIFON
PRINT
     STOCKID
     LSTDAT
	 CREATE_MONTH
CREATE_DAY
CREATE_YEAR
CREATE_MYY


gives me this

STOCKID LSTDAT     CREATE_MONTH CREATE_DAY CREATE_YEAR CREATE_MYY 
302630  11/04/2008 04           11          2008        04/2008 
924000  27/01/2009 01           27          2009        01/2009 




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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     DateCvt not working after upgrade 7.6.7 from 5.3

Copyright © 1996-2020 Information Builders