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] (FOC1426) DATA ELEMENT VALUE TOO BIG FOR SEGMENT/FIELD

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] (FOC1426) DATA ELEMENT VALUE TOO BIG FOR SEGMENT/FIELD
 Login/Join
 
Member
posted
Hi All,

I am trying to format a date for excel output as a date and not a string.

I am using embedded SQL...

'to_Date(sm.dep)' works properly but I want to format it differently. If I use 'to_Date(sm.dep, 'mm/dd/yyyy')' I get the error in the subject title.

Does anyone have any insight on this? Thanks.

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 14 | Registered: June 04, 2019Report This Post
Master
posted Hide Post
Could you provide a little more detail?
Is it a SQL Passthrough?
What is the db you are connecting to (different databases have slightly different SQL syntax ie: SQL Server, Oracle, Postgress, etc.)?
Have you done a SQL trace?
Can you provide the procedure code?


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Expert
posted Hide Post
Consider this: This query shows the same date, but with the format specified.

SELECT TO_DATE('10-25-2019', 'MM-DD-YYYY') AS date_test
FROM DUAL;

The data, 10-25-2019, can be a field.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
You're trying to make the database format a text according to a date-format specification that does not match that text.

Dates don't have a "format", it's just a big number. What you see in clients is an interpretation of a date converted to text, usually formatted according to your localization settings or explicitly converted to text using a specific format.

If you want a formatted date, then you must convert it to text using to_char(a_date, format_specification), or you must set your client's localization according to the desired format so that the client handles the conversion appropriately.


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
  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] (FOC1426) DATA ELEMENT VALUE TOO BIG FOR SEGMENT/FIELD

Copyright © 1996-2020 Information Builders