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] How to remove quotation marks for alphanumeric fields from a report’s .txt

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to remove quotation marks for alphanumeric fields from a report’s .txt
 Login/Join
 
Silver Member
posted
We need a report that its output data can be uploaded into another system.

We have tried several output file formats (such as: COMT), run it and saved it as .txt file. Then, after open the .txt file, all columns are separated by commas. The problem is that all alphanumeric fields are enclosed in quotation marks. We need help to get rid of the double quotations.

Anyone can suggest how?
Thanks

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


7703 on Linux, Windows
ReportCaster
PDF, HTML, Excel, AHTML, and CSV
 
Posts: 40 | Registered: January 31, 2008Report This Post
Virtuoso
posted Hide Post
TechLights, having alphanumeric fields enclosed by quotes is a valid convention for comma-separated-values files and WebFOCUS is adhering to those.

Why can't the other system consume it? is it a custom-load process someone built? If that system "understands" .csv files, it should have no problem parsing the file and getting the fields, quotes and all.


Now, back to you actual request Smiler I don't know if there is a setting in WebFOCUS that may make those quotes optional. If that is an issue for the downstream system, you may need to do a poor-man's .csv implementation ...

DEFINE FILE BLAH
LONG_LINE/A500 = FIELD1 || ', ' || FIEL2 || ',' ...;
END
TABLE FILE BLAH
PRINT LONG_LINE
ON TABLE HOLD AS HDATA FORMAT ALPHA
END



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
Expert
posted Hide Post
Consider: CTRAN or REPSTR
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Maybe output file format DFIX?


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
<FreSte>
posted
DFIX should do the trick:

TABLE FILE CAR
  SUM
    DEALER_COST
  BY COUNTRY
  BY CAR
  ON TABLE HOLD AS HLD1 FORMAT DFIX DELIMITER ',' HEADER NO
END
-RUN
-TYPE .........................
!TYPE HLD1.FTM
 
Report This Post
Silver Member
posted Hide Post
Thanks a lot for all of your responds! DFIX works.

One thing left to be done – it is:

When run the report, it will show some WF report messages before the really columns data. All columns data are separated by commas and alphanumeric fields are not enclosed in quotation marks – the result are exactly we want.

These message are as below.

How to show the result without displaying those seven lines of WF messages?
Thanks

===================================================================
Your request did not return any output to display.
Possible causes:
- No data rows matched the specified selection criteria.
- Output was directed to a destination such as a file or printer.
- An error occurred during the parsing or running of the request.
________________________________________

0 NUMBER OF RECORDS IN TABLE= 134 LINES= 134
0 NUMBER OF RECORDS IN TABLE= 134 LINES= 134
STUDENTID,LASTNAME,CLASSNAME,SSNS
ASMITH0001,Smith,C_USCG_BBOC-126,,
.
.
(report continues)


7703 on Linux, Windows
ReportCaster
PDF, HTML, Excel, AHTML, and CSV
 
Posts: 40 | Registered: January 31, 2008Report This Post
Guru
posted Hide Post
The actual hold file you create won't have all those preliminary messages. You are showing the message viewer out file which displays because there is nothing else to display.

You do have a
FILEDEF HLD1 DISK wherever\whatever
(OR APP HOLDDATA ....)
statement in your fex don't you?


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report 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] How to remove quotation marks for alphanumeric fields from a report’s .txt

Copyright © 1996-2020 Information Builders