Focal Point
Report output - Text File

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5561084862

January 28, 2008, 04:13 AM
L_G
Report output - Text File
Hello,

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

thanks


WebFOCUS 7.6
Windows 2000
Output: HTML, PDF
January 28, 2008, 04:31 AM
focuzsambit
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
January 28, 2008, 04:34 AM
Tony A
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 
January 28, 2008, 05:01 AM
Alan B
I prefer the ON TABLE HOLD AS fn FORMAT WP NOCC as being the cleanest option


Alan.
WF 7.705/8.007
January 28, 2008, 06:43 AM
L_G
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
January 28, 2008, 06:49 AM
FrankDutch
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

January 28, 2008, 07:02 AM
L_G
"|" 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
January 28, 2008, 08:53 AM
Tony A
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 
January 28, 2008, 11:21 AM
Darin Lee
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
January 29, 2008, 10:18 AM
jgelona
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.
January 29, 2008, 11:25 AM
PBrightwell
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
January 30, 2008, 10:07 AM
cburtt
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.