Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Convert PCL Spool file to IFS. In .PDF format or as is to .PCL format

366 views
Skip to first unread message

Dave Colford

unread,
Apr 12, 2002, 9:25:41 AM4/12/02
to
Hi Everyone

I have a USERASCII spool file that is PCL generated and can be
directly printed to a HP laser printer (that is set for host print
transform to HP5, but I do not think that matters as the spool file is
ascii and PCL already)

What I want to do is convert this to an IFS file
- Ideally a PDF format
- otherwise to copy the spool data as is to PCL document

I have tried the PCL copy approach using the GETSPLF command I found
on the net (Yes I know am not supposed to use it, but I am grapsing
for straws). I then use the CPYSTMF command to convert it. I have
tried many combos of the CPYSTMF parms, but no luck when I do a Copy
file.pcl LPT1: .... Here is what I was using so far to get it to the
IFS as .PCL


CRTPF FILE(QTEMP/CGEN428) RCDLEN(4083) +
MAXMBRS(*NOMAX) LVLCHK(*NO)
GETSPLF FILE(&SPFILE) JOB(&JNBR/&JUSER/&JOB) +
SPLNBR(&SPNBR) TOFILE(QTEMP/CGEN428) +
TOMBR(CGEN428)
CPYTOSTMF +
FROMMBR('/qsys.lib/qtemp.lib/CGEN428.FILE/c+
gen428.MBR') TOSTMF(&PATH *TCAT '/' *TCAT +
&DPFILE) STMFOPT(*REPLACE) CVTDTA(*NONE) +
STMFCODPAG(*PCASCII) ENDLINFMT(*FIXED)

Whatever method I choose I want to do this using IBM only API's etc.
and do not want to buy any software

Questions:
1- Does anyone know of a spool PCL to IFS .PDF converter approach
using API's?
2- Does anyone know of getting a spool PCL to IFS .PCL method.. What
am I missing
3. Does the following api help in any way for PCL spool files: ?
------ Host Print Transform (QWPZHPTR, QwpzHostPrintTransform)

Thank you so much for your help

Bill

unread,
Apr 12, 2002, 9:54:42 AM4/12/02
to
Hi Dave

www.pdfing.com will convert PCL spool files to PDF document very easily and
inexpensive.

Good Luck
Bill
PS: I have no association with the software. I just use it.

"Dave Colford" <dcol...@pathix.com> wrote in message
news:328ab30.02041...@posting.google.com...

Karl Hanson

unread,
Apr 12, 2002, 10:35:28 AM4/12/02
to

For 2, this alternative may be a bit obtuse, but you could look at the
Convert Image (QIMGCVTI) API. The first (Control Structure) parameter
has an Operation field - if you specify 3 for "no conversion", the
data is just copied from the source (eg spool file) to the destination
(eg IFS file). In this case most of the values for other parameters
do not apply, because no conversion is requested.

http://publib.boulder.ibm.com/pubs/html/as400/v5r1/ic2924/info/apis/QIMGCVTI.htm

--
Karl Hanson

Richard Schoen

unread,
Apr 12, 2002, 11:49:34 PM4/12/02
to

Hello Dave,

My company, RJS Software Systems Inc. has a Native AS/400 PCL to PDF
converter available. It can be used to convert PCL files from the IFS or
directly from an output queue entry.

For more information and to download a demo version, check out our web site
or feel free to contact me directly for more info.

Regards,
Richard Schoen
RJS Software Systems Inc.
"The AS/400 Report and Data Delivery Experts"
Email: ric...@rjssoftware.com
Web Site: http://www.rjssoftware.com


"Dave Colford" <dcol...@pathix.com> wrote in message
news:328ab30.02041...@posting.google.com...

Rodney Johnson

unread,
Apr 15, 2002, 10:59:18 AM4/15/02
to
Dave, The GETSPLF command will not accomplish things as you hope. This
being an IBM internal tool for catpuring spooled files, it saves away
other information into the DB file besides the data stream. That other
information is specific to OS/400 Spool and no other OS or file system in
the world knows or cares about it. Thus when you copy the PF into the
stream file, you get a lot of jibberish in front of the PCL data. For a
native solution, Karl Hanson's suggest would be the easiest.

A solution that takes more programming would be to use the QSPOPNSP,
QSPGETSP, and QSPCLOSP APIs to access the spooled file's data stream and
write to an IFS file.

Dave Colford wrote:

--
Rodney A Johnson
Technical Team Lead for AS/400 Spool
Dept GJC
IBM Rochester, Minnesota

The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, IBM. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.

0 new messages