Thanks for the reply Joe. I did search on RTFREADR. The only source I
was able to find was a generic version for the Windows world.
Would you mind sharing your source, the compile command used to build
it
and any implementation notes that go along with it?
Out of curiosity I downloaded the rtfreadr archive from
http://www.fiction.net/blong/programs. I saved the members into a new
source file named RTFREADR in my current library (source length=144),
renaming members as follows:
rtfactn.c => RTFACTN (SEU Source type = C)
rtfdecl.h => RTFDECL_H
rtfreadr.c => RTFREADR (SEU Source type = C)
rtftype.h => RTFTYPE_H
The two includes in RTFACTN and RTFREADR were changed to read:
#include "rtftype_h.rtfreadr"
#include "rtfdecl_h.rtfreadr"
Compiled 2 sources using PDM option 15, with the following on the command
line:
SYSIFCOPT(*IFSIO)
CRTPGM RTFREADER MODULE(RTFREADR RTFACTN)
QSH CMD('/qsys.lib/mylibrary.lib/RTFREADER.PGM /home/mydir/testfile.rtf >
/home/mydir/testfile.txt')
Everything went as I had hoped. Whether the output is what you want or not,
is your call. (I don't currently have the facility to place a .rtf file on
the system on which I'm working, and I have none with which to test.)
The only thing that should be stopping you from accomplishing this is the
lack of a C compiler. Since you didn't mention that, I assume you're good
to go.
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"We can't all be heroes, because somebody has to sit on the curb and clap as
they go by."
-- Will Rogers
As an Amazon Associate we earn from qualifying purchases.