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.
When I tried to generate Text format output file, I am getting below 3 issues :
1) Unable to get direct text format(.Txt). Is there a possible way to get text file directly. As of now i tried using Format as DOC and copying to notepad.(Used - ON TABLE HOLD FORMAT DFIX DELIMITER | but equal spacing between columns data is needed with single space)
2) First 2 bytes (2 columns) of the report are showing blanks and constantly after every data field/column the same blank lines are repeating. Can the blanks at the starting be removed and spacing between columns reduced to one space.
3) After some data the header is repeating( around 100 rows, the headers are repeating). Can the Header displays at staring and duplicates can be removed in the text file.
Below is the sample code used:
TABLE FILE CAR PRINT COUNTRY AS '' CAR AS '' MODEL AS '' BODYTYPE AS '' SEATS AS '' DEALER_COST AS '' RETAIL_COST AS '' SALES AS '' LENGTH AS '' WIDTH AS '' HEIGHT AS '' WEIGHT AS '' WHEELBASE AS '' FUEL_CAP AS '' BHP AS '' RPM AS '' MPG AS '' ACCEL AS '' HEADING "CAR REPORT" ON TABLE PCHOLD FORMAT DOC END
Any suggestions would be helpful.
Thanks for the help.
VijayThis message has been edited. Last edited by: FP Mod Chuck,
1) Unable to get direct text format(.Txt). Is there a possible way to get text file directly. As of now i tried using Format as DOC and copying to notepad.(Used - ON TABLE HOLD FORMAT DFIX DELIMITER | but equal spacing between columns data is needed with single space)
Almost there, use ON TABLE HOLD FORMAT DFIX DELIMITER ' '
To get this into a file with a .txt extension, declare the file first using FILEDEF - either within EDATEMP or directly to the network location using full path within the FILEDEF. Then use ON TABLE HOLD AS [your FILEDEF name] - this is standard code, plenty of examples on the Forum and covered in basic training.
quote:
2) First 2 bytes (2 columns) of the report are showing blanks and constantly after every data field/column the same blank lines are repeating. Can the blanks at the starting be removed and spacing between columns reduced to one space.
See previous response. The problem that you are seeing is because of the outputs that you are trying. Stick with DFIX and check out how to use it within help files.
quote:
3) After some data the header is repeating( around 100 rows, the headers are repeating). Can the Header displays at staring and duplicates can be removed in the text file.
DFIX files do not contain the HEADING as you are expecting(?) The "HEADER YES" (or NO) syntax within DFIX formatting refer to the column titles which you are blanking out.
For repeating header in other formats, this is automatic according to the number of output lines set within the LINES environment option. Default is 66 (I think) but if you want to turn this off then just use "SET LINES = 999999" - must be 6 * 9s for correct syntax.
Some training might help you some of this more basic stuff, is it something you and your employers have considered? If not, it would be of benefit.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004