View previous topic :: View next topic
|
Author |
Message |
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
Hello All,
Do we have any module in REXX which converts EBCDIC to Binary format . As we have X2C for HEx to Binary conversion .
Regards |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Ignorance is bliss...
X2C converts hex to character
C2X converts character to hex
X2B converts hex to bits
Next time, RTFM! |
|
Back to top |
|
|
shr_amar Warnings : 2 Active User
Joined: 02 May 2005 Posts: 128 Location: UK
|
|
|
|
Prino ,
I am intrested in direct conversion from Charecter to BInary
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Do we have any module in REXX which converts EBCDIC to Binary format . As we have X2C for HEx to Binary conversion . |
after 73 posts You should know better how to ask
also x2c does not do any binary conversion
moreover EBCDIC does not exist as a item itself,
one byte can have a value between 0 and 255 / x'00' and x'ff'
the distinction of EBCDIC/<ome_other_convention> comes out only when trying to display/print the byte itself
for some bit configuration You can tell if it is a valid EBCDIC or ASCII char
but there some overlaps and from that You cannot tell what representation or convention is being implied
post an example of the input chars and what Yo expect from output
did you care to look at the REXX reference manual ??
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A370/CCONTENTS?SHELF=IKJ4BK80&DN=SA22-7790-07&DT=20060626210253 |
|
Back to top |
|
|
|