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
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...
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
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...
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.