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.
I have a report that outputs to EXL2K but the fields that are HYYMDS (datetime fields) have a general format in Excel. Is there a way to make this as a datetime field?
I checked the forum and I only saw examples of dates not datetimes conversion in Excel.
Thanks for your help.
DanThis message has been edited. Last edited by: dballest,
Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10 QA: WebFOCUS 7.6.10, Data Migrator 7.6.10 Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8 Windows 2K3, Tomcat 5.5.17, IIS 6 Usage: HTML, PDF, Excel, Self-serve, BID and MRE
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005
Dan : I believe you can get around that issue my making sure the field is defined as a character field before it is passed on to Excel.
If you are using SQL passthru, you can -- CHAR(field-name) If you are using FOCUS code, you can -- COMPUTE/DEFINE using EDIT(fieldname)
Sandeep Mamidenna
------------------------------------------------------------------------------------------------- Blue Cross & Blue Shield of MS WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !!
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006
It did not work for me. It's still showing as General Format in Excel. Below is the sample code:
TABLE FILE RV_DMRHOLDS_ETL PRINT COMPUTE ODATE1/A20=HCNVRT(ORIGINATIONDATE, '(HYYMDS)', 20, 'A20'); ORIGINATIONDATE/HMDYYS WHERE RECORDLIMIT EQ 5 ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT EXL2K END
Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10 QA: WebFOCUS 7.6.10, Data Migrator 7.6.10 Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8 Windows 2K3, Tomcat 5.5.17, IIS 6 Usage: HTML, PDF, Excel, Self-serve, BID and MRE
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005
I just ran Francis' sample fex. The datetime fields are not in actual excel date/time format, but they displayed properly. For example DTGC displays as "2005/12/29 4:45:00PM". Excel sees it as general text, not a date/time field. I assume the problem is that, while Excel displays the field properly, Excel sees it at general text instead of date/time.
Just for the record, Excel see the QYY as general text and the YY as a zip code, all of the others, Excel sees as date fields.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
That is correct jgelona. The customer has a Excel application with macro (vb scripts). It's expecting the cell to be a date but it is recognized as general text.
Opened a case with IBI and it's been on their plate for awhile (NFR) and not sure when it will be out.
In the meantime, the macro code had to be changed to add an intermediate step to convert the cell to a data-time type.
Dan
Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10 QA: WebFOCUS 7.6.10, Data Migrator 7.6.10 Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8 Windows 2K3, Tomcat 5.5.17, IIS 6 Usage: HTML, PDF, Excel, Self-serve, BID and MRE
Posts: 197 | Location: Roseville, CA | Registered: January 24, 2005
Reference: Usage Notes for Date and Numeric Formats
The following formats are not supported in EXL2K. They will translate into Excel General format and possibly produce unpredictable results:
YY, Y, M, D, JUL, and I2MT.
Any date format with a Q (quarter).
Any packed-decimal (P) date formats.
Any alphanumeric (A) date formats.
Fixed Dollar (N) formats.
Multiple format options. Only single format options are supported when using FORMAT EXL2K. For example, the formats I9C and I9B are supported, but I9BC is not.
The following applies to headings and footings with embedded numeric fields:
If you embed a numeric field in a heading, subheading, footing, or subfooting of a report in Excel 2000 or higher format, the numeric field displays in Excel general format (text).
To display a numeric field in Excel number format, you must set HEADALIGN=BODY in the StyleSheet.
Dev studio on-line help
EXL2K display format and formatted datesThis message has been edited. Last edited by: <JG>,
SUM
MIN.DET_FIRSTDETECTDATETIME/HYYMDS
MAX.DET_LASTDETECTDATETIME/HYYMDS
BY SITE
BY TAGCODE
ON TABLE PCHOLD FORMAT EXL2K
END
with output to EXL2K and was able to do perform date math in Excel without reformatting the date columns. I subtracted LastDetectDateTime (D1) from FirstDetectDateTime (C1)and got the correct answer (in hours).
Posts: 60 | Location: Ellensburg Washington | Registered: May 22, 2009
It stays in 'General' format. Interestingly, Excel treats the columns as if they were date/time format if you use them in a date function. I also tried 'ON TABLE PCHOLD FORMAT EXL07'. It also created the columns as 'General'.
Posts: 60 | Location: Ellensburg Washington | Registered: May 22, 2009
Did anyone find the solution for date formate in Excel? I know it is possible to bring in custom, text and general formate but not in Date itself. did this problem get resolved?