Does anyone have an suggestions on how to invoke duplex mode in TSO LPR?

Actually I think a more general question would be is there a way to insert PCL 
codes in to an LPR datastream.

For CICS printing we are able to do this as follows by sending a string that 
contains hex 35, followed by a 2 byte binary length value, followed by the 
(ASCII) PCL commands needed to do things such as switch to duplex, switch to 
Landscape, etc.  The x'35' is the SNA Character String code to invoke 
"transparent mode" which then allows you to pass data that does not get 
converted from EBCDIC to ASCII.  But I don't see any way to do that with LPR.  
The only thing I can think to do (and I have not yet tried it) is to invoke LPR 
in BINary mode and send the entire data stream as ASCII.  I'd rather not do 
this if there is a better way.

Thanks,
Frank

-- 

Frank Swarbrick
Applications Architect - Mainframe Applications Development
FirstBank Data Corporation
Lakewood, CO  USA
P: 303-235-1403
F: 303-235-2075


>>> 

The information contained in this electronic communication and any document 
attached hereto or transmitted herewith is confidential and intended for the 
exclusive use of the individual or entity named above.  If the reader of this 
message is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient, you are hereby notified that any 
examination, use, dissemination, distribution or copying of this communication 
or any part thereof is strictly prohibited.  If you have received this 
communication in error, please immediately notify the sender by reply e-mail 
and destroy this communication.  Thank you.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to