Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing printer commands in a cobol program 1

Status
Not open for further replies.

michelle765

Programmer
Mar 7, 2003
5
US
I have a printout that I create in a microfocus cobol program that is passed to a Xerox DT65 printer. I am trying to determine how to pass a command to the printer that will offset the pages - so that we can set the printer up to staple each offset. (Or a staple command that I can put at the point I need the subset stapled).

Has anybody tried this before?

 
Just include the command in the output stream. For a PCL printer, (which I write to all the time) I include
X'1B' & '&l72U'
in the output stream for 1/10" offset. Usually this sort of function is output just after the OPEN statement.
 
Thanks - but I'm still having an issue with it. I put the command in the program to print in between the sets of instructions (I actually print a transmittal followed by the instruction sheet - then another transmittal followed by those instructions, etc. Each of these sets is what I need to offset so we can staple them). Now I am just getting a blank page that prints between the sets - and it's not actually offsetting between the sets.

Any other suggestions?
 
I found my problem with the blank page - but I'm still not having luck with it offsetting.
 
This is what I tried sending:
X'1B' & '&l72U'

I did, however, find a work around - by closing the output file and re-opening it where I need the break. This causes multiple queue entries - but allows us to staple each entry.

However - it would be ideal if we could keep them in the same printout and just offset them so we don't have hundreds of entries to move.
 
X'1B' & '&l72U' is a PCL command. Does a Xerox DT65 printer support PCL? If it does, this is the wrong command, as it offsets the image on the page, not the paper in the stacker. X'1B' & '&l1T' is the PCL job separation command. If your printer uses PCL, this is probably the command to use. You must send it at the end of each set of output to be separated. If you set the printer to staple each set, that might to the trick.
 
THANK YOU - THANK YOU - THANK YOU!
Worked perfectly. You don't know how much time you saved us!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top