We help IT Professionals succeed at work.

Force one-sided printing

Matthew Roessner
on
Does anyone know how to force an iSeries output queue to print one-sided?

We have our output queues pointing to Windows printers (going through a Windows print server). The default for these windows printers is to print on both sides of the paper, but we want our iSeries print to only print one-sided.

If anyone can shed some light, I would appreciate it.

Thanks
Comment
Watch Question

Theo KouwenhovenApplication Consultant

Commented:
Hi Hfcsp,


I'm affraid you ask the impossible, but what you can try is:

First check the printerfile of the program to check the duplex status If it's *Yes change it to *No and try.
If it was already *NO, there is nor mutch you can do at the AS/400 site.

Then you can try to findout if duplex is defined in de printerserver for all drawers of the printer.
and change the drawer in the printerfile.

*You better change this question and add a windows-printer-guru in the loop.

Goodluck
Murphey2 has it pretty right. The only other option would be Workstation Customization Object (*WSCST), though I have to admit I haven't seen this request executed before.

How are the printers defined. Based on your description I am thinking as Remote OutQ's and that means it's pretty much a non-starter. If they are IP *LAN attached, then it might be possible as WSCST but they are unique to each printer and if you have several different printers you would need a specific one for each model possibly.

Either way I would not be real optimistic.

Mike
Gary PattersonVP Technology / Senior Consultant

Commented:
1) Check the DUPLEX parameter of the spooled files involved, and if it is DUPLEX(*YES), you can either CHGPRTF or OVRPRTF to DUPLEX(*NO).  Depending on the printer configuration, this may or may not have an impact.

2) As Murphey2 and Mike indicated above, You can create a customer Workstation Customization object for the printer(s) involved.  WSCST objects are simply files containing translation rules that AS/400 Host Print Transform uses when converting SCS or AFP data streams to ASCII data streams (usually PCL).  This is a little tricky, and requires a bit of knowledge of the target print data stream language (PCL, most likely).

In order to make this second alternative work, there are several requirements:

a) The printer must be defined to use Host Print Transform (OUTQ or DEVD defied with TRANSFORM(*YES)).
b) The printer must be betting the raw converted data stream directly from the AS/400, without any Windows transformations happening.  THis usually means that you are printing directly to the printer's IP address, and not a a Windows host address, though if you are using Unix File and Print Services for Windows, you could also be printing to a LPR queue on the Windows server.
c) The printer must be configured to allow the data stream to override the default duplex setting.  IF you can force simplex printing from a Windows application, then the hardware is properly configured.

If you will post the WSCST object that is currently being used or MFRTYPMDL if a customer WSCST is not defined, plus your AS/400 OS version, we can help show you how to retrieve the WSCST source code and modify it to override the printer's DUPLEX setting.  

- Gary Patterson



VP Technology / Senior Consultant
Commented:
@mkc451:

I am thinking as Remote OutQ's and that means it's pretty much a non-starter. If they are IP *LAN attached, then it might be possible as WSCST but they are unique to each printer and if you have several different printers you would need a specific one for each model possibly.

Either way I would not be real optimistic.


One small note:  Remote OUTQ or DEVD does not matter.  Either way, you can specify a WSCST for use by HPT.

@hfcsp:

I've had the (mis)fortune of creating numerous WSCST objects to manipulate ASCII printer transforms  (though not to override a DUPLEX default setting that I can recall),and after a very painful learning curve, I now get pretty good results, though it sometimes takes quite a bit of experimentation to find the right settings for each printer and attribute.

Assuming this is a PCL printer, the PCL Quick Reference is very handy.  See page six for Simplex/Duplex commands:

http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13205/bpl13205.pdf

Finally, I was pleasantly surprised to find this great IBM article on setting Duplex (on, in this case) using a WSCST:

https://www-304.ibm.com/support/docview.wss?uid=nas1d8348fffd19dd26b862571500058582d

- Gary Patterson





- Gary
Great article Gary -- had never seen that one... will book mark that for later use for sure...

Mike
Gary PattersonVP Technology / Senior Consultant

Commented:
I was looking for the following link when I spotted that one:

https://www-304.ibm.com/support/docview.wss?uid=nas1bed5e38e3fdd7d07862565c2007d0ef0

This link is good, but earlier link is very specific to this particular question.

- Gary Patterson
Matthew RoessnerSenior Systems Programmer

Author

Commented:
I was able to set up the WSCST to print one-sided with no problems. Thanks Gary!
Gary PattersonVP Technology / Senior Consultant

Commented:
Happy to help.

- Gary