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] Current Timestamp in Oracle format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Current Timestamp in Oracle format
 Login/Join
 
Member
posted
Hi,
I want to set the value of &NOW to the current time stamp in Oracle format
(like 17-MAY-13 10.03.05.000000000 PM).
Please help.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.7.03/05
Windows, All Outputs
 
Posts: 1 | Registered: November 06, 2017Report This Post
Virtuoso
posted Hide Post
That strongly depends on your NLS settings in Oracle. The most reliable method of obtaining that information is querying it from Oracle.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
How do you plan to use &NOW? Is this for a WHERE test?

If you're trying to format a date/time there are a lot of ways to mask them for display. Here's an example in DEFINE and TABLE.
 DEFINE FILE CAR
ORAC_NOW/HYYMD-sB WITH COUNTRY = DT_CURRENT_DATETIME(MICROSECOND);
END
TABLE FILE CAR
PRINT CAR ORAC_NOW
BY COUNTRY
END 

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


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
Hi Aster

Welcome to Focal Point. This is a great resource for getting answers to your development questions.

I agree with Web5622 that getting this info directly from Oracle would be the easiest because the internal data functions with WebFOCUS do not format them to be Oracle specific. I found this link that tells how to do this with Oracle. https://docs.oracle.com/cd/B19...200/functions037.htm Once you have this value you can set &NOW to that value. I am assuming you want to use SQL passthru for a query back to Oracle after you have it..


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 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] Current Timestamp in Oracle format

Copyright © 1996-2020 Information Builders