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



The version in QUSRTOOL on our 7.1 box has the hole punching and
stapling code in it. It's in QATTSYSC which you have to restore from a
savf of the same name in that library.




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Scott Klement
Sent: Thursday, September 17, 2015 5:42 PM
To: Midrange Systems Technical Discussion
Subject: Re: Set spool file to be recognised as black and white as
opposed tocolour

Don,

I haven't tried embedded the PJL sequence in WSCST as you are doing, but
it seems logical that it'd work.

For USRDTATFM, I used a modified version of IBM's TSPRWPR tool. I think
this tool was originally part of QUSRTOOL and was to enable page range
support with remote writers...

But, I got a copy that they had modified further to also support the
stapling and hole-punching capability of a newer copier/printer. This
was written by Rodney Johnson from IBM, and was written in ILE C.

I modified it to support the devices that I needed. (The PJL for hole
punching and stapling was different on my devices than the one Rodney
had provided.) and also to set the userid and B&W printing mode (which,
of course, is really grayscale as you correctly noted in your WSCST
example.)

Unfortunately, I no longer have access to the code since it was a
previous job -- but perhaps you can locate the TSPRWPR that has the
stapling/punching support and start with that? Maybe someone on the
list knows where to get that.

-SK


On 9/17/2015 1:24 AM, Don Brown wrote:
Thanks for the information Scott.

I am thinking you needed to do this to be able to insert the user id
as this is dynamic information. (I have a customer in Adelaide that
would really benefit from having the user id in the job but that is a
job for another day!)

As the information is static - will be for every job my next option is

to apply a WSCST with a printer initialisation string to set the mode.

Based on the HP PJL manual I am thinking;

:INITPRT
/* Ec% - 1 2 3 4 5 X @ P J L CrLf */
DATA = '1B252D31323334355840504A4C0D0A'X
/* @ P J L S E T R E N D E R M O D E = G R A Y S C A L
E
CrLf */

'40504a4c205345542052454e4445524d4f44453d475241595343414c450D0A'X
/* EcE (Initialize Printer) */
'1B45'X.


I am though very interested in investigating the use of the USRDTATFM
exit point. If anyone has any working example of this and would like
to share I would really appreciate it rather than starting by
searching for the relevant manual(s)

Thanks


Don Brown




From: Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx>
Date: 16/09/2015 11:27 AM
Subject: Re: Set spool file to be recognised as black and white
as
opposed to colour
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



There is an escape code that needs to be sent to the printer to tell
it to use black & white mode -- and unfortunately, the Host Print
Transform does not send this code.

I fixed this at a previous job, about 10 years ago, by inserting some
code using the USRDTATFM exit point... but it was 10 years ago, and
I
don't remember the specifics anymore, sorry.

In our case, we were using the printer's statistics to charge
appropriate departments within our organization (each employee used
their own signon to print to this printer, and we charged their
departments a different rate per page for B&W vs Color, this is why we

had to fix it.) So we had code in there to insert their userid for
the printer to recognize it when printing from IBM i, as well as set
the B&W mode (IBM i never printed color)... it was fairly complex.

Unfortunately, I don't have any of the specifics. But, maybe this
will help you look in the right place? (PJL manual, perhaps?)


On 9/15/2015 6:56 PM, Don Brown wrote:
We have a new colour printer (Fuji-Xerox MFP model FX DocuCentre-IV
C2265 PCL 6)

We are using a remote output queue to connect to a Windows 2012 R2
server with LPR printing enabled.

The issue is the printer is detecting every print job from the System

i as a colour job and this results in being charge at a colour rate
per print.

I have looked at the *HPCOLORLJ work station customising object for
any commands that relate to colour but nothing seems to be obvious.
I have tried HP5 and other options for manufacture type and model but

always the print job is received/identified as colour.

Could anyone suggest how I could configure the output queue or
workstation
customising object to enable the print jobs to be recognised as black

and white jobs.

Thanks everyone!

Don Brown



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx 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 ...

Replies:

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.