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



We have a receipt print that issues the cut command to an Epson printer

Here is the DDS

A R DK3113E2
A TEXT('CUT RECEIPT')
A 1X'1B691B40'
A TRNSPY

Are you using the TRNSPY keyword ?

Cheers

Don






From: "orlando misas" <omisas@xxxxxxxxx>
To: "RPG programming on the IBM i (AS/400 and iSeries)"
<rpg400-l@xxxxxxxxxxxxxxxxxx>
Date: 06/05/2020 11:16 AM
Subject: How to print hexadecimal on a printer
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



Hi,

I need to print to an epson TM-m30 printer from an rpg program. On the
last
line I must print these hexadecimals x'1D'x'E5'x'F1 '(equivalent to ascii
x'1D'x'56'x'31') to cut the printer paper. When I generate the information
to a db2 table and transfer it to notepad ++ I find that the last line has
the ascii characters

[image: image.png]
which is correct and is what I need. When I generate the spool into a
printer file in iSeries and print it, the paper is not cut. When printing
the spool in hexadecimal characters the last line has the hexadecimals 20
56 31 and should be 1D 56 31. The spool file is compiled with DEVTYPE *
SCS
and RPLUNPRT * NO. The iSeries is 7.3.
Does anyone have a recommendation? . Thank you.

Orlando Misas





[image: image.png]

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.