• Subject: RE: EBCDIC to ASCII conversion table
  • From: Paul Tykodi <pault@xxxxxxxxx>
  • Date: Wed, 17 Dec 1997 15:22:13 -0500

Marc Zylka wrote:

Anyone know which manual contains the EBCDIC to ASCII
conversion table?  I'm still trying to output a field, from RPG II,
which will convert to an ASCII Esc to activate the printer
overly in the HP laser printer.

Thanks,
Marc Zylka (mzylka@netpath.net)

Dear Mark,

You can use the ASCII transparency feature of the operating system to call for 
the ASCII Escape from your program. The hex value to enable ASCII transparency 
is 03 followed by a count byte and then ASCII data. Your RPG II field would 
need to include three hex values to send the ASCII Escape as follows: 03 01 1B.

Since you are mentioning RPG II, which would suggest working from the S/36 
environment, you would need to access the TRANS option to insert the hex data. 
The IBM manual S544-3343 "Using the IBM Pageprinter 3812 with an IBM S/36 or 
S/38" includes programming examples that illustrate how to use the function. 
The function is fully supported by the AS/400 S/36 environment. The IBM manual 
mentioned above describes the option as follows: "The TRANS (short for 
transparent) option allows you to insert your own hexadecimal instructions into 
the RPG, COBOL, or Assembler printer data stream with no editing (censoring) by 
the System Support Program (SSP)." 

Good Luck!

/Paul
--
Paul Tykodi, Technical Director                 E-mail: pault@praim.com
Praim Inc.                                           Tel: 603-431-0606
140 Congress St., #2                                Fax: 603-436-6432
Portsmouth, NH  03801-4019



+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@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
+---


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].