Focal Point
[CLOSED] Save a file as Flat text file for EDI transmission

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

June 23, 2010, 09:34 AM
alejor
[CLOSED] Save a file as Flat text file for EDI transmission
I need to be able to save a file in text format with no delimiters with WebFOCUS. Each field needs to be a specific type and length and the file will have a header and footer. This is to be an EDI transmission.

Thank you,
Al

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


Webfocus 7.6.1, Win 2003, PDF, Excel, HTML
June 23, 2010, 09:47 AM
Francis Mariani
After all these years, I think you still have to create a file like this manually:

FILEDEF SSS DISK BASEAPP/SSS.TXT
-RUN

-WRITE SSS THIS IS THE HEADING

FILEDEF SSS DISK BASEAPP/SSS.TXT (APPEND
-RUN

TABLE FILE CAR
PRINT
*
ON TABLE HOLD AS SSS FORMAT ALPHA
END
-RUN

-WRITE SSS THIS IS THE FOOTING




Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 23, 2010, 11:09 AM
Darin Lee
Yup - that's still the ticket (after all these years.) Make sure you have the fields defined to the correct length (and number to the correct format and precision. In the end, the type is irrelevant because it's a flat file. Just get them in the correct order.


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