× 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: sending a printer control character from RPG
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 5 Oct 2000 07:23:40 -0500

USually you can just move the hex value into a field and place it on the
output specs, compile the printer file to not convert special characters,
and it works like a charm. 

Brad

> -----Original Message-----
> From: Terry Owen [mailto:sandstar@technologist.com]
> Sent: Wednesday, October 04, 2000 5:57 PM
> To: RPG400-L@midrange.com
> Subject: sending a printer control character from RPG
> 
> 
> Is this possible in RPG/400?  We have a client that uses an over the
> counter sales cash drawer that is opened by an ascii control 
> character that
> is intercepted by the printer and opens the cash drawer.  Our receipt
> printing program uses simple o-specs and I'm baffled by how 
> to send this
> info to the printer.
> 
> I could convert the o-specs to a printer file but I don't 
> really know if
> the CVTDTA keyword would work.  And I can't find a hex equivalent to
> CTRL-J.  (I'm out of my league here, obviously.)
> 
> Any leads would be appreciated - I did a search on IBM's web 
> site today and
> found stuff about Transperancy and the CVTDTA keyword but 
> since I don't
> know (yet) what type of printer they are using, I don't know 
> if it is even
> possible.
> 
> TIA,
> 
> Terry Owen, RPG Programmer
> work email:  towen@quintrex.com
> 
> p.s. Would using STRPCCMD to send a DOS command like Copy ^J 
> PRN: work or
> is that too bizarre? 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to 
> RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: 
> david@midrange.com
> +---
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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 ...

Follow-Ups:

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.