× 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: John Hall <jhall@xxxxxxxxxxx>
  • Date: Tue, 09 Jun 1998 18:10:57 -0400
  • Organization: Home Sales Co.

Patrick & Tim - thanks for the info

MIME headers are not a problem - I am used to using them from the unix
side.  I have all that setup in my C source.  What was confusing me is
that I thought I had read that you could use the *sysifo option on the
compiler and the "w" for output to get the system to automatically
translate when you wrote to the IFS.  What is really confusing me is
that I actually got this to work ONCE ! - Then I made the mistake of
cleaning up the code and polishing up the output!

Then it don't work no more.

So I guess I'll use the XLATE API - can't seem to get to the bookserver
pages right now to look it up.  The header in QSYSINC lists a bunch of
optional parameters but does not specify their data types.

Again thanks for all the help.

John Hall


Patrick Townsend wrote:
> 
> 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
+---
| 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.