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] A question for text file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] A question for text file
 Login/Join
 
Gold member
posted
I am trying to create a text file without heading and title. However, if I use “ON TABLE SAVE FILENAME “TEST.TXT” FORMAT VISDIS, then I always get the first line as blank line and the second line with a single character “S”. How do I get rid the first line which is blank line and the second line which has one character “S” there? I want the real data from the 3rd line appear at the first line. If I am using “ON TABLE SAVE FILENAME “TEST.TXT” without “format”, then I always get 6-digit number in front of the real data for each line.

WebFocus 7.6.11
Windows


TABLE FILE CAR
PRINT
'CAR.COMP.CAR' AS ''
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE SAVE FILENAME
"TEST.TXT" FORMAT VISDIS
ON TABLE SET HTMLCSS ON

--1st line (I don’t want this line)
S --2nd line (I don’t want this line)
JAGUAR
DATSUN
MASERATI
TOYOTA
AUDI
TRIUMPH
ALFA ROMEO
BMW
PEUGEOT

Thank you.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)
 
Posts: 56 | Registered: June 17, 2011Report This Post
Virtuoso
posted Hide Post
VISDIS is tab delimited for Visual Discovery. That is what the initial lines are for. If you are not using Visual Discovery trying using format TAB.

The 6 digit number sounds like an AnV field. Try converting to straight An.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Virtuoso
posted Hide Post
FILEDEF TEST DISK appname/test.txt  
TABLE FILE CAR
PRINT CAR 
ON TABLE SAVE AS TEST
END

This will put your test.txt file in the "appname" application without any headings, titles, blank lines etc.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Gold member
posted Hide Post
If the field is variable, then I will get 6-digit "field length" in front. If the field is fixed length, then your way is working.

Thank you both of you.


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)
 
Posts: 56 | Registered: June 17, 2011Report This Post
Gold member
posted Hide Post
SOLVED. Thanks.


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)
 
Posts: 56 | Registered: June 17, 2011Report 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] A question for text file

Copyright © 1996-2020 Information Builders