Focal Point
RTF on FOCUS for z/OS?

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

December 05, 2003, 05:47 PM
David Briars
RTF on FOCUS for z/OS?
Greetings,

Can I produce a report in RTF, with FOCUS for z/OS? (I am on release 7.1.1.)

(I can create PDF format report A-OK, but I have had to rule them out, because my users want to cut and paste from the report.)

I checked out format WP, but this looks like a plain text file. I would like my users to see page breaking when then open the report in MS Word.

I have used routines, in REXX and Assembler, that convert ASA control characters to RTF page control commands, on my FOCUS reports in the past. However, in this case, I'd like to keep everyting in FOCUS.

Regards,
Dave Briars
December 09, 2003, 04:14 PM
Mikel
I'm not sure, but I think that HOLD FORMAT DOC can help.
I have seen that this format generates a HEX 0C character (= DEC 12 ASCII = Form Feed) for page break.

I hope this helps.
Regards,
Mikel
December 12, 2003, 08:01 PM
David Briars
Hi Mikel,

Thank you for the suggestion.

I tried HOLD FORMAT DOC and it is working like a champ! Smiler

May I ask you, and the forum, two follow-up questions?

1. HOLD FORMAT DOC is not listed in my 'FOCUS for S/390' manuals - Versions 7.0 nor 7.1. As far as you know, is this format is fully supported by IB, on my platform/release? (I know I have to check with IB to find out for sure.)

2. Is there a way to suppress the HEX 0C on the first page? When I print the report, I receive a blank page, before the first page of the report.

Once again thank you for your suggestion.

Regards,
Dave
December 16, 2003, 01:34 PM
David Briars
Greetings,

Following up...

My report created with FORMAT DOC on z/OS was opening up OK in MS Word, until I realized I needed to more control things then just page-breaking.

I wanted also control things like: page orientation, font size, paper size,...

I decided to 'roll my own' RTF format. I create my report using FORMAT ALPHA. I embed each report line with the required RTF code. I then sandwich the report file with RTF code. I then ship the report as a .rtf attachment to a email messsage via the z/OS internet gateway. The document opens up in MS Word, and is ready for my users to edit/cut/paste/... in Word.

Regards,
Dave

PS
I checked with IB, and they recommend FORMAT WP
December 16, 2003, 01:36 PM
David Briars
PS
I checked with IB, and they recommend FORMAT WP over FORMAT DOC.
December 16, 2003, 07:13 PM
Mikel
Hi David:

Thanks for your comments.

I use exactly the same technique to send html pages via email.

1. I write my html file using -WRITE and/or HOLD FORMAT ALPHA|WP embedding my own xhtml code.
2. I Send email with the created file using htm extension.
3. Final users open the attached report with a simple click or double-click.

This technique is useful for any text-based file format.
(rtf, htm, xml, csv...)

About FORMAT DOC, this feature is fully documented under WebFOCUS 4.3.x. I know this works in 7.11 due to casual tries (either our 7.11 doc. haven't DOC references)

Regards,
Mikel