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



Jeff, here is the prototype I use to do the ASCII/EBCDIC translations:

 * EBCDIC to ASCII Translator 
D Translate       Pr                  Extpgm('QDCXLATE') 
D Length                         5P 0 Const 
D Data                       32766A   Options(*varsize) 
D Table                         10A   Const 

And here is the code: 

C                   CallP     Translate( %Len(SocketData) 
C                              :Xlate_Data:'QASCII') 

I 'prefix' the start block at the beginning of Xlate_Data, then the actual 
data followed by the carriage return and line feed. Then it gets sent 
through the translator. Then it is sent as such.

Chris:

I am building my message to send as a variable length field (in EBCDIC) 
which is then translated to ASCII and then sent. I'm of the impression 
that the SD/CR/LF will all have to be in ASCII went sent as this is what 
the WIN2K server is looking for.


Regards,

Gerald Kern

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.