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     Problem with DATECVT after migrating to wf 5.2.6 from 5.2.1

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Problem with DATECVT after migrating to wf 5.2.6 from 5.2.1
 Login/Join
 
<kj>
posted
Has any one experienced this problem when migrated from webfocus 5.2.1 to 5.2.6 on Win 2k. This is working fine in 5.2.1 and not in 5.2.6.
I am getting an error
(FOC36355) INVALID TYPE OF ARGUMENT #2 FOR USER FUNCTION DATECVT
when it is run in 5.2.1. Is there a change in how the date functions are executed?

DEFINE FILE CAR
GMTNOW/HMDYYI = HGETC(8,'HMDYYI');
GMTNOWA8/A8 = HCNVRT(GMTNOW, '(H17)', 17, 'A8');
GMTNOWI8/I8 = EDIT(GMTNOWA8);
GMTNOWYYMD/YYMD = DATECVT(GMTNOWI8,'I8YYMD','YYMD');
END
TABLE FILE CAR
PRINT CAR MODEL SEATS GMTNOWYYMD
BY COUNTRY
END


thanks,
kj
 
Report This Post
Silver Member
posted Hide Post
Exactly. There is new functionality that checks arguments when calling subroutines.
To turn it off
SET USERFCHK=OFF.
To fix the original problem change the format of
GMTNOWI8/I8 = EDIT(GMTNOWA8);
to
GMTNOWI8/I8YYMD = EDIT(GMTNOWA8);
 
Posts: 34 | Location: 2 Penn Plaza | Registered: July 29, 2004Report This Post
<kj>
posted
Thanks BIGBMN. That worked.

Also if there is no ELSE for IF, it throws up an error. Does any one has experienced with any other problems while migrating to 5.2.6?

kj
 
Report 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     Problem with DATECVT after migrating to wf 5.2.6 from 5.2.1

Copyright © 1996-2020 Information Builders