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     (SOLVED) COMT output - keep '/' separator character for dates?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
(SOLVED) COMT output - keep '/' separator character for dates?
 Login/Join
 
Gold member
posted
Hey users,
We are running a large project where we have to create extracts in a csv format output. I am using the COMT format for this, but it removes all the forward slash (/) date separators when the file is saved to the upload location. Does anyone know of a way to keep the original formatting to keep the date in 08/03/2018 form instead of it overwriting the date to reflect as 8032018?

I have a few dates hard coded into the report, and those come across with the forward slash separator and they are not removed. It is only removing the separator for MDYY fields pulled into the report.

Thank you for any help!
-Larissa

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


Version: 8.2.03M, OS/Platform: Windows 7 & 10, Output: Excel, pdf, html
 
Posts: 63 | Location: Liberty Lake, WA - USA | Registered: June 23, 2016Report This Post
Gold member
posted Hide Post
Larissa, try this.

TRX_DATE1/A8MDYY = TRX_DATE ;
TRX_DATE2/A10 = EDIT(TRX_DATE1, '99/99/9999') ;

It produced this...
08012018,"08/01/2018"
07272018,"07/27/2018"
07252018,"07/25/2018"


WebFOCUS 8

Windows, All Outputs
 
Posts: 55 | Location: Phoenix | Registered: March 01, 2018Report This Post
Gold member
posted Hide Post
Les - You did it! This worked perfectly. Thank you my friend!
-LB


Version: 8.2.03M, OS/Platform: Windows 7 & 10, Output: Excel, pdf, html
 
Posts: 63 | Location: Liberty Lake, WA - USA | Registered: June 23, 2016Report This Post
Master
posted Hide Post
First, COMT was not removing the "/". The "/" were removed because COMT is a file format. The exact same thing happens with HOLDFORMAT ALPHA, SAVE, TABT, etc. file formats. When creating a HOLD file, if you want to save the formatted output of a field, try using FPRINT. Assuming TRX_DATE is a smart date:
PTRXDT/A10=FPRINT(TRX_DATE,'MDYY','A10');


TRX_DATE could have a default format of YYMD, but PTRXDT will be "MM/DD/YYYY" in the COMT file.


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, 2006Report 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     (SOLVED) COMT output - keep '/' separator character for dates?

Copyright © 1996-2020 Information Builders