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] Date Conversion in Global Variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Date Conversion in Global Variable
 Login/Join
 
Platinum Member
posted
I have a global "SET" variable equal to '20100802', that now I'm trying to create a new global variable of '2010-08-02', and pass it to a web service as HYYMDm

Is the best solution to use the code below?

-SET &SMARTGOLIVE2 = DATECVT('2010-08-02', 'A10YYMD', 'HYYMDm');

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


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
Function DATECVT cannot be used to create date-time values. I think function HINPUT is probably what you are looking for. By the way, "global" variables have two ampersands (ex. &&SMARTGOLIVE2) and local variables have just one ampersand.

EDIT: It just occurred to me that date-time functions like HINPUT probably don't work in Dialogue Manager. You may need to do the conversion inside a TABLE request or as a DEFINE function.

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Platinum Member
posted Hide Post
I guess I'm not asking this correctly.

Right now, I have:

-SET &SMARTGOLIVE = DATECVT('20100802', 'I8YYMD', 'I8YYMD');


I need the resulting value of &SMARTGOLIVE to be 2010-08-02, but be in HYYMDm format so that it can be passed to a web service parameter that is expecting that format.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
See this:

-DEFAULT &MYDATE = '20120802';
-SET &SMARTGOLIVE = HINPUT (8, &MYDATE, 12, 'HYYMDm');
-SET &DATEBACK = HCNVRT (&SMARTGOLIVE, '(H23)', 23, 'A23');

-TYPE Original: &MYDATE
-TYPE HYYMDm native format: &SMARTGOLIVE
-TYPE HYYMDm "human" format: &DATEBACK



Dialogue Manager can handle those data types but does your web service really expect the parameter in "native" format?

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



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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] Date Conversion in Global Variable

Copyright © 1996-2020 Information Builders