× 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 E-mail
  • From: Patrick Townsend <townsend@xxxxxxxxxxxxxx>
  • Date: Tue, 09 Jun 1998 12:18:25 -0700
  • Organization: Patrick Townsend & Associates, Inc.

Tim,

Thanks for correcting me on the CR/LF issue! 

John, I'm attaching a translation table I use as an alternative to the
IBM QASCII table. You can create the table using the CRTTBL command. I
believe it corrects the line feed problem and a couple of other
character translation problems (perhaps the exclamation point and
something else ???). The usual disclaimers apply: use at your own risk! 

Patrick

Tim McCarthy wrote:
> 
> At 09:05 AM 6/9/98 -0700, you wrote:
> >John,
> >
> 
> >One word of caution - I think there is a problem with the IBM-supplied
> >QASCII translation table with regard to the CR character. It has to end
> >up as hex 0D in ASCII, but I think doesn't do this the way you would
> >expect. You might need to use your own table. Let me know if you would
> >like some source for an EBCDIC to ASCII translation table. I'm reaching
> >back in my memory (which is unreliable at best), but I think I used
> >EBCDIC hex 25 instead of 15.
> >
> Actually it's the line feed character you need to watch for because QASCII
> and QEBCDIC are not reversable. Ascii x'0A' = Ebcdic x'15' but not the
> other way around, you have to use x'25'. You should change the translation
> table not the data (if you're working in C) 'cause AS/400 C functions like
> 'gets' will only recogize x'15' as newline.
> 
> +---
> | 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
> +---

-- 

Patrick Townsend                       mailto:townsend@patownsend.com
Patrick Townsend & Associates, Inc.    http://www.patownsend.com
00010203FF09FF7FFFFFFF0B0C0D0E0F10111213FF0A0BFF1819FFFF1C1D1E1F
FFFFFFFFFF0A1718FFFFFFFFFF050607FFFF16FFFFFFFF04FFFFFFFF1415FF1A
20FFFFFFFFFFFFFFFFFF5B2E3C282B7C26FFFFFFFFFFFFFFFFFF21242A293B5E
2D2FFFFFFFFFFFFFFFFF7C2C255F3E3FFFFFFFFFFFFFFFFFFF603A2340273D22
FF616263646566676869FFFFFFFFFFFFFF6A6B6C6D6E6F707172FFFFFFFFFFFF
FF7E737475767778797AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
7B414243444546474849FFFFFFFFFFFF7D4A4B4C4D4E4F505152FFFFFFFFFFFF
5CFF535455565758595AFFFFFFFFFFFF30313233343536373839FFFFFFFFFFFF

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.