× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



iSeries News (formerly News/400) published a CVTSPLSTMF command in July
2000 and then updated it in November 2000.  I've been using it and it
works really well.  Will convert to PDF, HTML or good-old plain text.

Regards,

Gerry Tucker
Senior Analyst Programmer
Technicolor Distribution Services
Wembley, U.K.




-----Original Message-----
From: Scott Klement [mailto:klemscot@klements.com]
Sent: 6 February 2002 20:31
To: midrange-l@midrange.com
Subject: Re: Spool File to PDF and Email. Free? PC based?



On Wed, 6 Feb 2002, Bernard McCartney wrote:
> I know that there is Gumbo, and other AS/400 programs that convert
> spools to PDF.
>
> But I am looking for a PC based program that converts spools to PDF
and
> automatically emails out.
>
> Since recession, Our budgets have been cut next to nothing.
>
> Free version will be the best.


If you want a FREE solution... the "Linux" (or any modern unix) TN5250
program comes with a program called "lp5250d", which will act like a
printer, and download spooled files to the PC.

Then, it also comes with a utility called "scs2ps" which will convert
the
spooled file from IBM's SCS format to postscript.   The (also free,
open-source) Ghostscript package comes with a utility called ps2pdf that
will convert postscript to PDF.

So (and I just did this as a test) I can write a simple shell script
that looks like this:

#!/bin/sh
exec 2>&-
echo "To: klemscot@klements.com"
echo "From: Spooler"
echo "Subject: Spooled file"
echo
echo "Here's the spooled file you asked for:"
echo
/usr/local/bin/scs2ps  | \
/usr/local/bin/ps2pdf - | \
/usr/bin/uuencode spoolfile.pdf || exit $?

and then run lp5250d like this:

        lp5250d env.DEVNAME=PRT01
"outputcommand=/path/to/script|sendmail
klemscot@klements.com" as400.example.com

and now whenever I direct a spooled file to PRT01, it gets converted to
PDF and e-mailed to me...   not too bad for 5 minutes of work.


So...  that's my idea.   You'll probably say "But!  I'm running
Windows!".
Well, you didn't specify Windows in your request -- you just said PC.
:)
And if you really want things free, and open-source OS is a better
choice.


_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.