Focal Point
Want to display a message at the column 1 of a WP file [SOLVED]

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

December 27, 2009, 12:46 PM
Piscian
Want to display a message at the column 1 of a WP file [SOLVED]
Hi All,

Please help me with this.
I have a text file which I created using WP format and it is sent to user through report caster as a .txt file. User wants that file to have a message "END OF FILE" as last line, issue is that this message should start from column 1 of the file whereas WP format inserts 2 spaces in beginning of each record.
Please reply if you think of any solution.

Thanks!

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


Thanks and Regards,
Piscian

WebFocus 714
Windows Server 2003
Enterprise Edition
HTML,Excel,PDF
December 28, 2009, 09:43 AM
GinnyJakes
There is a recent (last 2-3 weeks) post that talks about prepending and appending rows to a file. Write your end of file record to a separate file and attach it to your main file. You can use any number of techniques to do this, operating system commands, alternate masters and MORE, etc.

If you can't find the post, let me know and I'll try to find it for you.


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
December 29, 2009, 10:31 AM
Rhonda
Hi
This link discusses how to remove the form feed/page-break character from FORMAT WP

http://techsupport.information...om/sps/12702105.html -

To append at the end of the file- this is one technique

TABLE FILE CAR
PRINT CAR BY COUNTRY
ON TABLE HOLD AS HOLD01
END
-RUN
FILEDEF HOLD01 DISK C:\path\HOLD01.FTM (APPEND <-- issue APPEND
-RUN
-SET &VALUE='END RECORD RECORD';
-WRITE HOLD01 &VALUE

Good Luck,
Rhonda


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
January 05, 2010, 12:12 AM
Piscian
Thank you Ginny and Rhonda. I got it resolved by appending the message to the last line of file.
Thank you so much.


Thanks and Regards,
Piscian

WebFocus 714
Windows Server 2003
Enterprise Edition
HTML,Excel,PDF