|
Dear Scott, Thanks for your reply, however, when I try to print it, it show follow msg on AS/400 lp5250d env.DEVNAME=PRTASC trace=/tmp/lp5250d.log outputcommand='scs2pdf>/tmp/scs$$.pdf' 10.1.10.228 Additional Message Information Message ID . . . . . . : CPA3303 Severity . . . . . . . : 99 Message type . . . . . : Inquiry Date sent . . . . . . : 02/14/03 Time sent . . . . . . : 11:15:46 Message . . . . : Attributes of file AC0730C not supported for device PRTASC. (C G H) Cause . . . . . : Writer PRTASC found attributes of file AC0730C number 1 job 697169/CCHMISKK2/AC0730C on output queue PRTASC in library QUSRSYS that are not supported for device PRTASC. The error code, or codes, are 5. The error codes and their meaning are as follows: 1 - Page size of file not supported on device. 2 - Device type of file not supported on device. 3 - Lines per inch (LPI) of file not supported on device. 4 - Special device requirements of file not supported on device. 5 - IGC data (IGCDTA), IGC character rotation (IGCCHRRTT), IGC characters More... Type reply below, then press Enter. If a reply "g" and release the print job, the scs2pdf process at RedHat Linux box seems hang up and only produce 0 byte PDF file. # ps -ax 16562 ? S 0:00 lp5250d env.DEVNAME=PRTASC trace=/tmp/lp5250d.log out 16576 ? S 0:00 sh -c scs2pdf>/tmp/scs$$.pdf 16577 ? S 0:00 scs2pdf # ls -l -rw------- 1 root root 17979 Feb 14 11:15 lp5250d.log -rw-rw-rw- 1 root root 0 Feb 14 11:15 scs16576.pdf <- Zero byte I can see the report at lp5250d.log, so it may the problem of scs2pdf.. Regards, Chris Lee > -----Original Message----- > From: Scott Klement [mailto:klemscot@klements.com] > Sent: Thursday, February 13, 2003 3:07 PM > To: Linux 5250 Development Project > Subject: Re: [LINUX5250] scs2pdf produce unreadable pdf > > > > When you set your system up to use host print transform > (i.e., when you > supply the env.IBMMFRTYPMDL parameter to lp5250d) you are telling the > AS/400 that it should handle all of the transformations, rather than > letting the emulation software do it. > > This means that the AS/400 is sending codes to scs2pdf that > say "this data > is already in the correct format! Don't change it!" > > Try something like this instead: > > lp5250d env.DEVNAME=PRTASC > outputcommand='scs2pdf>/tmp/scs$$.pdf' 10.1.10.228 > > (As you see, I've omitted all of the MFRTYPMDL / WSCST > parameters) what > should happen in that circumstance is that the AS/400 will > send the data > in SCS format for the IBM 3812 printer. scs2pdf understands that > format, and will translate it to PDF. > > > > On Wed, 12 Feb 2003, Chris Lee wrote: > > > > I tried to create PDF from AS/400 spool file, by issue the > following command > > at RedHat Linux 8.0 box. > > > > lp5250d env.DEVNAME=PRTASC env.IBMMFRTYPMDL=*WSCST > > env.IBMWSCSTNAME=QWPDEFAULT env.IBMWSCSTLIB=*LIBL > trace=/tmp/lp5250d.log > > outputcommand='scs2pdf>/tmp/scs$$.pdf' 10.1.10.228 > > > > However, the PDF file cannot open by Acrobat Reader and I > found control code > > on remain on the report (e.g. ^M^L^M^M). > > > > Did I set MFRTYPMDL parameters wrong? > > > > _______________________________________________ > This is the Linux 5250 Development Project (LINUX5250) mailing list > To post a message email: LINUX5250@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/linux5250 > or email: LINUX5250-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/linux5250. >
As an Amazon Associate we earn from qualifying purchases.
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.