IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

EBCDIC to Binary conversion


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Wed Sep 09, 2009 3:33 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Sep 09, 2009 3:44 pm
Reply with quote

Ignorance is bliss...

X2C converts hex to character
C2X converts character to hex
X2B converts hex to bits

Next time, RTFM!
Back to top
View user's profile Send private message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Wed Sep 09, 2009 3:48 pm
Reply with quote

Prino ,

I am intrested in direct conversion from Charecter to BInary

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 09, 2009 4:02 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts SMF Record Date conversion failing CLIST & REXX 1
No new posts EBCDIC and ASCII CICS 7
Search our Forums:

Back to Top