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]Output in Notepad

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Output in Notepad
 Login/Join
 
Member
posted
Hi
I have to create a report that saves the output in a TXT file.
What do I need to do?
I looked up the help and from whatever I could gather from it is written below:
 DEFINE FILE GGORDER
TOTAL_SALES/D11.2 = QUANTITY*UNIT_PRICE;
END

TABLE FILE GGORDER
SUM
TOTAL_SALES AS 'TOTAL SALES'
BY
PRODUCT_DESCRIPTION
ON TABLE SAVE AS filename FORMAT WP 
END 


But i am not getting the desired output. Can anyone please explain whats gone wrong?

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


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Expert
posted Hide Post
Filedef the file prior to the table request, e.g. FILEDEF filename DISK [full path]\filename.txt, where [full path] is relative to the reporting server (i.e. not your own computer).

Using SAVE gives a default format of ALPHA which may be what you require rather than WP.

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, 2004Report This Post
Member
posted Hide Post
Thanks Smiler
but can't I save the file at any location I want to??


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Virtuoso
posted Hide Post
You can put it anywhere you wish, provided these locations are known to the server or can be made known.
If you need it to be saved on a machine other than the server, you would need to first create a share for that location, assign the share within the server environment and then filedef it.
There is another way of distributing files: use report caster.
Or yet another: use ftp to store the file on a ftp-server.

So, if you really need to be able to store it anywhere you wish, there are possibilities enough to do so, provided these other locations allow this to be done.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
ok
Thanks..
i think i would have to create a shre on the reporting server..


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Expert
posted Hide Post
Sidney,

Also be aware that it is worth while adding the platform you are using (e.g. windows 2003 server or linux etc.) as some replies can be tailored to your platform rather than being generic.

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, 2004Report This Post
Member
posted Hide Post
OK..WILL DO THAT
THANKS Smiler


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Member
posted Hide Post
do i need to set the path as well on the reporting server where I would need to save the file??


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Member
posted Hide Post
HEY

I used the following code and i got the file saved in .txt format. Smiler

  
APP HOLD TEMPHOLD
TABLE FILE CAR
PRINT
*
ON TABLE SAVE AS TEMPORARY1 FORMAT VISDIS
END


_________________________________________________________________

WF Server: 7.1.4 on Unix and Win2K3 server, ReportCaster, Self-Service, MRE, Java
Data: Teradata, Oracle, SQL Server Output: HTML,PDF,EXL2K, WP
WF Client: 7.1.4 on Windows 2K3 w/Tomcat
 
Posts: 27 | Registered: August 12, 2009Report This Post
Expert
posted Hide Post
You have to be careful with FORMAT VISDIS because it puts headings on the first line and column lengths on the second line. That may not be what you want. It also tends not to be lined up properly in nice, neat columns. Make sure you look at the output.

Tony gave you the best method.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 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]Output in Notepad

Copyright © 1996-2020 Information Builders