Page 1 of 1

Sort as EBCDIC

Posted: Wed Jan 02, 2019 10:24 pm
by rakesh.puli
Hi All,

why do we use this property in sort stage "Sort as EBCDIC"? Can anyone please explain me about this property?

Thanks
Rakesh

Posted: Thu Jan 03, 2019 5:35 am
by chulett
Well... not sure what kind of explanation you are looking for. You would set this property to TRUE if you were processing (sorting) EBCDIC data. This so it doesn't use the ASCII collating sequence on it, since they sort differently. Found this checking online, perhaps it might help.

Posted: Thu Jan 03, 2019 9:01 am
by FranklinE
It's an easy mistake to make when processing EBCDIC character set data in the DataStage ASCII character set default environment. The setting you see is how you control that.

Sorting is on the binary data which represents the characters. The main difference between the character sets are the numerals. EBCDIC "0" is xF0, ASCII is x30, etc.

Posted: Thu Jan 03, 2019 10:16 am
by chulett
Right... had meant to come back and mention that this was all predicated on DataStage running in an ASCII environment but got ambushed. Thanks for the catch.

Posted: Thu Jan 03, 2019 8:53 pm
by rakesh.puli
Hi Chulett/Franklin,

Thank you for your replies. I understand from your replies that, In datastage by default sorting is done by ASCII character set. I would like to know what is the meaning of EBCDIC Character set. what is the difference between the ASCII Character set and EBCDIC Character set? Please share me if you have any example on this?

Thanks
Rakesh

Posted: Thu Jan 03, 2019 11:26 pm
by rakesh.puli
chulett wrote:Well... not sure what kind of explanation you are looking for. You would set this property to TRUE if you were processing (sorting) EBCDIC data. This so it doesn't use the ASCII collating sequence on it, since they sort differently. Found this checking online, perhaps it might help.
Thanks, Chulett. This thread is useful.

Posted: Fri Jan 04, 2019 7:10 am
by FranklinE
Rakesh,

Find the charts for the character sets, showing the characters and their hexadecimal values. Put EBCDIC and ASCII side by side.

I suggest finding older charts which stop at xFF or before. Extended character sets will get confusing after that.

Posted: Fri Jan 04, 2019 10:33 am
by chulett
Sorry, didn't realize you weren't any kind of familiar with EBCDIC. Another possibly helpful URL:

https://en.wikipedia.org/wiki/EBCDIC