Here, although we are using HP printers as before these printer
overrides are ignored by the printers. It REALLY would be nice to be
able to use them - especially to print only the last 2 pages of a 500
page report for example... The printers are defined as *HP5.
I'm guessing we need to use a Workstation Customisation Object - a grey
area at best?
If you have any experience of this and can offer help I would be
grateful.
Thanks in advance.
Tony Payne
Senior Analyst/Programmer
Maax
Plymouth IN
This is what I picked up a while ago.
Get from my website (http://www.prym.nl/pages) the file pagrange. This is a
saved file. Ftp this file to a saved file on your AS400.
Than use following commands:
RSTOBJ OBJ(*ALL) SAVLIB(PAGRANGE) DEV(*SAVF) OBJTYPE(*ALL) +
SAVF(???/PAGRANGE) RSTLIB(???)
ENDWTR WTR(output-queue) OPTION(*IMMED)
CHGOUTQ OUTQ(output-queue-library/output-queue) TRANSFORM(*NO) +
USRDTATFM(QGPL/TSPRWPR) MFRTYPMDL(*SAME) WSCST(*SAME)
Note: The output queue description's Manufacturer type and model (MFRTYPMDL)
and Workstation customizing object (WSCST) parameters will still be used,
but the remote writer will no longer call Host Print Transform (HPT)
directly to convert the OS/400 spooled file to an ASCII printer data stream.
The remote writer will call the TSPRWPR program, and the TSPRWPR program
will call Host Print Transform (HPT) to convert only the pages specified in
the Page range to print (PAGERANGE) parameter in each spooled file's
attributes.
Pjotr
Try this for older release..
http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3ANL03/11.4.5.1?SHELF=&DT=19990224124925&CASE=
I use it for number of copy pages. It does not work on every printer.
Niko.
If you have the QUSRTOOL library take a look at the QATTINFO file it
documents an unsupported tool to print page ranges to remote output queue's.
Angus
another thing might be to do with the way the printers are defined.
You can define LAN printers in several ways, most commonly;
1) Remote Output queue using CRTOUTQ and specifying remote printer/queue
name.
2) LAN Attached device using CRTDEVPRT DEVCLS(*LAN)
I typically always found that devices defined via method 1 didn't handle
COPIES/PAGERANGE whereas those defined as a LAN device did.
That might have changed in latr releases, but it certainly works for us
99% of the time.
It still uses host print transform, so doesn't affect the output in any
way.
Cheers
Andrew
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Here, although we are using HP printers as before these printer
overrides are ignored by the printers. It REALLY would be nice to be
able to use them - especially to print only the last 2 pages of a 500
page report for example... The printers are defined as *HP5. "
Rather than define the printers as a remote output queue, it is better
to use the CRTDEVPRT command, define them as a *LAN printer, type 3812
model 1, use the PJL port 9100 and select the HP driver, and the system
driver program should be *IBMSNMPDRV I'll attach a few print screens at
the bottom of this. Doing it this way will give you page range and
number of copies control, something that is more difficult to
accomplish when you are using a regular remote outq.
After you create the device using the screen shots below, you need to
vary it on, send it a test job, use option 10 to start the writer, and
it will ask you to verify the form type. Give it a 'G' for go and it
should begin printing.
Good luck with it,
Chris
Create Device Desc (Printer) (CRTDEVPRT)
Type choices, press Enter.
Device description . . . . . . . > TESTHP Name
Device class . . . . . . . . . . > *LAN *LCL, *RMT, *VRT,
*SNPT, *LAN
Device type . . . . . . . . . . > 3812 3287, 3812, 4019,
4201...
Device model . . . . . . . . . . > 1 0, 1, 2, 3, 4, 10, 13,
200...
LAN attachment . . . . . . . . . > *IP *LEXLINK, *IP, *USRDFN
Port number . . . . . . . . . . > 9100 0-65535
Online at IPL . . . . . . . . . *YES *YES, *NO
Font:
Identifier . . . . . . . . . . > 3 3, 5, 11, 12, 13, 18,
19...
Point size . . . . . . . . . . *NONE 000.1-999.9, *NONE
Form feed . . . . . . . . . . . *TYPE *TYPE, *CONT, *CONT2,
*CUT...
Separator drawer . . . . . . . . *FILE 1-255, *FILE
Separator program . . . . . . . *NONE Name, *NONE
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Printer error message . . . . . > *INFO *INQ, *INFO
Message queue . . . . . . . . . *CTLD Name, *CTLD, *SYSOPR,
QSYSOPR
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Activation timer . . . . . . . . 170 1-2550, *NOMAX
Inactivity timer . . . . . . . . *ATTACH 1-30, *ATTACH,
*NOMAX...
Host print transform . . . . . . *YES *NO, *YES
Manufacturer type and model . . > *HP4000
Paper source 1 . . . . . . . . . *MFRTYPMDL *MFRTYPMDL, *LETTER...
Paper source 2 . . . . . . . . . *MFRTYPMDL *MFRTYPMDL, *LETTER...
Envelope source . . . . . . . . *MFRTYPMDL *MFRTYPMDL,
*MONARCH...
ASCII code page 899 support . . *NO *NO, *YES
Image configuration . . . . . . *NONE *NONE, *IMGA01,
*IMGA02...
Character identifier:
Graphic character set . . . . *SYSVAL 1-32767, *SYSVAL
Code page . . . . . . . . . . 1-32767
Remote location:
Name or address . . . . . . . > 'ip address goes here'
User-defined options . . . . . . *NONE Character value,
*NONE
+ for more values
User-defined object:
Object . . . . . . . . . . . . *NONE Name, *NONE
Library . . . . . . . . . . Name, *LIBL, *CURLIB
Object type . . . . . . . . . *DTAARA, *DTAQ,
*FILE...
Data transform program . . . . . *NONE Name, *NONE
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
System driver program . . . . . > *IBMSNMPDRV
Secure connection . . . . . . . *NO *NO, *YES
Validation list . . . . . . . . *NONE Name, *NONE
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Publishing information:
Support duplex . . . . . . . . *UNKNOWN *UNKNOWN, *SIMPLEX,
*DUPLEX
Support color . . . . . . . . *UNKNOWN *UNKNOWN, *NOCOLOR,
*COLOR
Pages per minute black . . . . *UNKNOWN 1-32767, *UNKNOWN
Pages per minute color . . . . *UNKNOWN 1-32767, *UNKNOWN
Location . . . . . . . . . . . *BLANK
Data streams supported . . . . *UNKNOWN *UNKNOWN, *PCL, *PS,
*PDF...
+ for more values
Text 'description' . . . . . . . *BLANK
Additional Parameters
Remote network identifier . . . *NETATR Name, *NETATR, *NONE
Workstation customizing object *NONE Name, *NONE
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Authority . . . . . . . . . . . *CHANGE Name, *CHANGE, *ALL,
*USE...
Chris M. Roberts wrote:
> "Our printers on the AS/400 are all connected using Remote Writers and
> IP Addresses. In my last job our printers were defined the same way
> but we could print specific page ranges, copies etc...
>
You could check out the excellent PC based PCL Viewer transform utility
at http://pcl.to
EscapeE will do print sub-setting
Pete