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     [CLOSED] Oracle to Db2 date format conversion

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Oracle to Db2 date format conversion
 Login/Join
 
Silver Member
posted
Dear All,,

We have recently migrated the webfocus from 716 to 77. The below date format code is not working in 77, but working fine in 716. The code converts the input oracle date to db2 format. Please help me to resolve this issue

Code in 716:
-SET &INPUT_ORA_PFF_DT = '01-OCT-2013';
-SET &DB2_PFF_DT=DATETRAN(DATECVT(HINPUT(11,&INPUT_ORA_PFF_DT, 8, 'DMYY'),'I6YMD', 'YYMD'),'(YYMD)', '(-)', 'EN', 10, 'A10') ;

In 77
I am getting this error
(FOC36355) INVALID TYPE OF ARGUMENT #4 FOR USER FUNCTION HINPUT

This message has been edited. Last edited by: <Kathryn Henning>,


Webfocus 7.1.6, Webfocus 7.7, Webfocus 8
 
Posts: 33 | Registered: August 16, 2012Report This Post
Virtuoso
posted Hide Post
Not sure why this would ever work. HINPUT requires a datetime format as output. You can achieve this a couple of ways:
-SET &INPUT_ORA_PFF_DT = '01-OCT-2013';
-SET &DB2_PFF_DT=HCNVRT(HINPUT(11,&INPUT_ORA_PFF_DT, 8, 'HDMYY'),'(HYYMD-)',10,'A10');
-TYPE &DB2_PFF_DT

-SET &DB2_PFF_DT=DATETRAN(HDATE(HINPUT(11,&INPUT_ORA_PFF_DT, 8, 'HDMYY'),'YYMD'),'(YYMD)','(-)','EN',10,'A10') ;
-TYPE &DB2_PFF_DT


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 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     [CLOSED] Oracle to Db2 date format conversion

Copyright © 1996-2020 Information Builders