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


  • Subject: Re: Printing a Hex(02)
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Wed, 28 Mar 2001 10:42:03 -0600 (CST)


How is the printer attached to the AS/400??   The AS/400 is an EBCDIC
machine, and the printer is ASCII.  Either the AS/400 itself, or one
of the devices in between is translating your data from EBCDIC to 
ASCII, and this will almost certainly mess up your x'02'.

Our company has about 20 datamax printers attached to the AS/400, we're
using adapter boxes from I-O Corp that allow us to attach the datamax
printers as twinax devices.   (The model is I-O 4440s)

These devices allow for "command passthrough codes" so that we can 
embed control characters in our documents, such as the x'02' attention
command.  If the IO-4440s sees the string "&%02&%" it will send a
x'02' to the printer.   

If its attached directly to the AS/400, you should be able to accomplish
something similar using host print transform with '*WSCST' and a
workstation customization object created for your printer.  

So.... how are you attaching the printer?


On Wed, 28 Mar 2001 philbrewer@johnson-tiles.com wrote:
> 
> I am trying to print to a Datamax label printer from the AS/400.  This printer
> requires a special "attention getter" character to be sent to the printer 
>before
> it will print.
> 
> This special character is a <STX> that has the Hex value of '02'.
> My print program contains the following statement to set the hex value :
> 
> MOVEL     X'02'         PRTDTA
> 
> I've changed the printer file so that it has Replace Unprintable Characters
> (*NO) .
> My problem is that this doesn't seem to work.  It is as if the control 
>character
> of Hex(02) is not getting to the printer.  The Printer definitey works,  it's
> been connected to a PC and works ok when a PC print is sent.
> I think that the Hex(02) is getting lost somewhere when the AS/400 sends the
> report to the printer but I don't understand why.
> 
> Can anybody explain this or suggest any solution ?
> 
> Thanks
> 
> Phil
> 
> 

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.