ASCII or EBCDIC?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

ASCII or EBCDIC?

Earl Hodil
What character set does NetRexx work in: ASCII or EBCDIC?


Second question: Does NetRexx handle character set conversions automatically?


Thanks to whomever answers!

Earl Hodil

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

rvjansen
Earl,

Unicode.

René.

On 2012-08-08 13:46, Earl Hodil wrote:

> What character set does NetRexx work in: ASCII or EBCDIC?
>
>
> Second question: Does NetRexx handle character set conversions
> automatically?
>
>
> Thanks to whomever answers!
>
> Earl Hodil
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

rvjansen
In reply to this post by Earl Hodil
But do note, that while it is Unicode, to send actual Unicode into
program files as program source, there is an option -utf8 for the
translator.

I opened an issue to make this the default, but am not aware of all
consequences of this and receive not enough feedback to put that into
3.01.

best regards,

René.


On 2012-08-08 13:46, Earl Hodil wrote:

> What character set does NetRexx work in: ASCII or EBCDIC?
>
>
> Second question: Does NetRexx handle character set conversions
> automatically?
>
>
> Thanks to whomever answers!
>
> Earl Hodil
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

rvjansen
On z/OS the translation is automatic, and done by the Java runtime.
EBCDIC ends up as the right Java types as char (16 bit Unicode) and
String. When doing multiplatform development over ASCII and EBCDIC
environments, one should refrain from doing things as assuming the
numerical value and sequence of characters - this will fail; but keep to
Rexx, String and char and everything works.

Spreading the answers over several emails because I don't want to
discourage you from porting ooRexx to z/OS with too much good news at
once ...

best regards,

René.



On 2012-08-08 13:51, rvjansen wrote:

> But do note, that while it is Unicode, to send actual Unicode into
> program files as program source, there is an option -utf8 for the
> translator.
>
> I opened an issue to make this the default, but am not aware of all
> consequences of this and receive not enough feedback to put that into
> 3.01.
>
> best regards,
>
> René.
>
>
> On 2012-08-08 13:46, Earl Hodil wrote:
>> What character set does NetRexx work in: ASCII or EBCDIC?
>>
>>
>> Second question: Does NetRexx handle character set conversions
>> automatically?
>>
>>
>> Thanks to whomever answers!
>>
>> Earl Hodil
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

Robert L Hamilton
In reply to this post by Earl Hodil
is ASCII not a subset of EBCDIC ?

Bob Hamilton
Richardson TEXAS USA

On Wed, Aug 8, 2012 at 6:46 AM, Earl Hodil <[hidden email]> wrote:

> What character set does NetRexx work in: ASCII or EBCDIC?
>
>
> Second question: Does NetRexx handle character set conversions automatically?
>
>
> Thanks to whomever answers!
>
> Earl Hodil
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

Earl Hodil
In reply to this post by rvjansen
René,

I should have been more specific, I'm not worried about the source. What I want to know is what does a NetRexx program naturally "see?" Unicode or IBM-1047? And what about MVS datasets?

Earl

On Aug 8, 2012, at 7:51 AM, rvjansen <[hidden email]> wrote:

> But do note, that while it is Unicode, to send actual Unicode into program files as program source, there is an option -utf8 for the translator.
>
> I opened an issue to make this the default, but am not aware of all consequences of this and receive not enough feedback to put that into 3.01.
>
> best regards,
>
> René.
>
>
> On 2012-08-08 13:46, Earl Hodil wrote:
>> What character set does NetRexx work in: ASCII or EBCDIC?
>>
>>
>> Second question: Does NetRexx handle character set conversions automatically?
>>
>>
>> Thanks to whomever answers!
>>
>> Earl Hodil
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

measel
Earl, it will "see" Unicode.  This isn't due to netrexx, but the jvm.

As per MVS datasets, there are lots of IBM goodies already written to make that easy.

Recommend you start here:  http://www-03.ibm.com/systems/z/os/zos/tools/java/products/jzos/overview.html

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Earl Hodil
Sent: Wednesday, August 08, 2012 7:01 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] ASCII or EBCDIC?

René,

I should have been more specific, I'm not worried about the source. What I want to know is what does a NetRexx program naturally "see?" Unicode or IBM-1047? And what about MVS datasets?

Earl

On Aug 8, 2012, at 7:51 AM, rvjansen <[hidden email]> wrote:

> But do note, that while it is Unicode, to send actual Unicode into program files as program source, there is an option -utf8 for the translator.
>
> I opened an issue to make this the default, but am not aware of all consequences of this and receive not enough feedback to put that into 3.01.
>
> best regards,
>
> René.
>
>
> On 2012-08-08 13:46, Earl Hodil wrote:
>> What character set does NetRexx work in: ASCII or EBCDIC?
>>
>>
>> Second question: Does NetRexx handle character set conversions automatically?
>>
>>
>> Thanks to whomever answers!
>>
>> Earl Hodil
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

Earl Hodil
In reply to this post by rvjansen
René,

Go ahead and give me all the good news, as I have determined that I'm NOT the guy to port ooRexx to z/os. While z/os USS is true to the letter of the law where Unix is concerned, it is not true to the spirit of the law. It doesn't contain all of the programs and utilities that one would reasonably expect Unix to have. Perhaps someday in the near future this will all change, but until it does, I think NetRexx is where IBM obviously wants REXX to go.

I have learned through many years of banging my head against the wall not to buck IBM. They are just too big and powerful, and the hold the scimitar of death over my head.

Earl

On Aug 8, 2012, at 7:57 AM, rvjansen <[hidden email]> wrote:

> On z/OS the translation is automatic, and done by the Java runtime. EBCDIC ends up as the right Java types as char (16 bit Unicode) and String. When doing multiplatform development over ASCII and EBCDIC environments, one should refrain from doing things as assuming the numerical value and sequence of characters - this will fail; but keep to Rexx, String and char and everything works.
>
> Spreading the answers over several emails because I don't want to discourage you from porting ooRexx to z/OS with too much good news at once ...
>
> best regards,
>
> René.
>
>
>
> On 2012-08-08 13:51, rvjansen wrote:
>> But do note, that while it is Unicode, to send actual Unicode into
>> program files as program source, there is an option -utf8 for the
>> translator.
>>
>> I opened an issue to make this the default, but am not aware of all
>> consequences of this and receive not enough feedback to put that into
>> 3.01.
>>
>> best regards,
>>
>> René.
>>
>>
>> On 2012-08-08 13:46, Earl Hodil wrote:
>>> What character set does NetRexx work in: ASCII or EBCDIC?
>>>
>>>
>>> Second question: Does NetRexx handle character set conversions automatically?
>>>
>>>
>>> Thanks to whomever answers!
>>>
>>> Earl Hodil
>>>
>>> _______________________________________________
>>> Ibm-netrexx mailing list
>>> [hidden email]
>>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: ASCII or EBCDIC?

measel
In reply to this post by Earl Hodil
Correction, according to the doco here:
http://www.ibm.com/developerworks/java/zos/javadoc/jzos/SDK7/index.html

The default encoding is different between zFiles and other files.

Class FileFactory

    java.lang.Object
        com.ibm.jzos.FileFactory


    public class FileFactory
    extends java.lang.Object

    A class with static methods for building a BufferedReader, BufferedWriter, InputStream, or OutputStream on a text file or MVS dataset.

    If the file name given starts with "//", then the underlying file stream will be constructed using a ZFile on an MVS dataset, otherwise the file will be constructed using java.io.

    The default encoding for BufferedReaders and BufferedWriters is the ZUtil.defaultPlatformEncoding for ZFiles, and the default JVM file.encoding property for other files.

    This class may be used on non-z/OS platforms so long as MVS filenames are not used, so as to allow for portable text-based IO applications.

-----Original Message-----
From: Measel, Mike
Sent: Wednesday, August 08, 2012 7:08 AM
To: IBM Netrexx
Subject: RE: [Ibm-netrexx] ASCII or EBCDIC?

Earl, it will "see" Unicode.  This isn't due to netrexx, but the jvm.

As per MVS datasets, there are lots of IBM goodies already written to make that easy.

Recommend you start here:  http://www-03.ibm.com/systems/z/os/zos/tools/java/products/jzos/overview.html

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Earl Hodil
Sent: Wednesday, August 08, 2012 7:01 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] ASCII or EBCDIC?

René,

I should have been more specific, I'm not worried about the source. What I want to know is what does a NetRexx program naturally "see?" Unicode or IBM-1047? And what about MVS datasets?

Earl

On Aug 8, 2012, at 7:51 AM, rvjansen <[hidden email]> wrote:

> But do note, that while it is Unicode, to send actual Unicode into program files as program source, there is an option -utf8 for the translator.
>
> I opened an issue to make this the default, but am not aware of all consequences of this and receive not enough feedback to put that into 3.01.
>
> best regards,
>
> René.
>
>
> On 2012-08-08 13:46, Earl Hodil wrote:
>> What character set does NetRexx work in: ASCII or EBCDIC?
>>
>>
>> Second question: Does NetRexx handle character set conversions automatically?
>>
>>
>> Thanks to whomever answers!
>>
>> Earl Hodil
>>
>> _______________________________________________
>> Ibm-netrexx mailing list
>> [hidden email]
>> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/