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     Report output - Text File

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report output - Text File
 Login/Join
 
Gold member
posted
Hello,

is it possible to use a text file(.txt) as report output?

thanks


WebFOCUS 7.6
Windows 2000
Output: HTML, PDF
 
Posts: 72 | Registered: January 14, 2008Report This Post
Platinum Member
posted Hide Post
i don't recall having heard about this format in webfocus... Eeker
but we can do it Unix/Oracle...why webfocus... Winky


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
 
Posts: 133 | Registered: May 12, 2007Report This Post
Expert
posted Hide Post
You mean, place the output data into a .txt file? Yes -
FILEDEF myoutput DISK [path on reporting server]/myfile.txt
-RUN
TABLE FILE [filename]
PRINT etc.
ON TABLE SAVE AS myoutput
END
-RUN

If you mean you want a formatted report into a text file then try looking at DOC or WP format output.

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
Virtuoso
posted Hide Post
I prefer the ON TABLE HOLD AS fn FORMAT WP NOCC as being the cleanest option


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
Thanks it works fine...

Can you tell me whether the WebFocus supports something like templates for the output?

For example:

-----------------
xxxx|xxxxxx|xxxxx


Where the 'xxxx' is the field that will be replaced with the field from the data table.


WebFOCUS 7.6
Windows 2000
Output: HTML, PDF
 
Posts: 72 | Registered: January 14, 2008Report This Post
Virtuoso
posted Hide Post
and what is the "|" supposed to be? ";" or "," Or "tab" or.....

BTW I would suggest to look for some basic training.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
"|" is a part of the template, it just separate the fields

Here is some example of the template output:


----------------
1111|2222|3333


Thanks for the suggestion, currently I am reading the WF documentation but I can read all documentation because there is not much time...


WebFOCUS 7.6
Windows 2000
Output: HTML, PDF
 
Posts: 72 | Registered: January 14, 2008Report This Post
Expert
posted Hide Post
quote:
because there is not much time...

Setting a target completion date without considering the developers training requirements would appear to be a poor planning situation by management?

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
Virtuoso
posted Hide Post
Make a field that contains the delimiter character and you can use it to format your output however you want. Pretty basic stuff.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Master
posted Hide Post
LG, this is from old FOCUS days, but we still have a lot of reports that do this.
 OFFLINE
 FILEDEF OFFLINE DISK &&RPTPATH..yi649.out ( LRECL 160 RECFM V
...
 TABLE FILE XYZ
 PRINT F1 F2
    BY S1
    BY S2 PAGE-BREAK
 END
-*
 OFFLINE CLOSE

In our environment, this builds a text file with the need mainfram printer page breaks.


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
Master
posted Hide Post
I haven't tested this, but I think what you are wanting is:
DEFINE FILE CAR
BAR/A1='|';
END
TABLE FILE CAR
PRINT
MODEL
BAR
SEATS
BAR
DEALER_COST
HEADING
"-------------------------------"
END


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
Try this to achieve the column heading 'look' you've shown. I'll use Alpha columns, but integer, etc. can be used, but would require experimentation to get the correct column widths.

DEFINE FILE CAR
BAR/A1='|';
END

TABLE FILE CAR
PRINT
MODEL/A4 AS '----'
BAR AS '-'
COUNTRY/A4 AS '----'
BAR AS '-'
WEIGHT/A4 AS '----'
ON TABLE ... FORMAT WP
END

Although you might find this kind of column heading more informative:
PRINT
BAR AS '=,|,-'
MODEL/A6 AS '======,Model,-----'
BAR AS '=,|,-'
etc.


WIN/2K running WF 7.6.4
Development via DevStudio 7.6.4, MRE, TextEditor.
Data is Oracle, MS-SQL.
 
Posts: 154 | Location: NY | Registered: October 27, 2005Report 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     Report output - Text File

Copyright © 1996-2020 Information Builders