Date: Thu, 20 Apr 2006 17:22:05 -0500
Reply-To: Jiann-Shiun Huang <Jiann-Shiun.Huang@AMERUS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jiann-Shiun Huang <Jiann-Shiun.Huang@AMERUS.COM>
Subject: Re: Convert EBCDIC rep of binary to binary
Content-Type: text/plain; charset=US-ASCII
John:
I am not sure if this is what you are looking for. If not, I will
need more explanation.
2051 data _null_;
2052 ca01EB='0b8c7c80660803';
2053 Binary=put(input(ca01EB,hex14.),binary56.);
2054 put binary=;
2055 run;
Binary=00001011100011000111110010000000011001100000100000000011
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
J S Huang
1-515-557-3987
fax 1-515-557-2422
>>> John Mattson <John_Mattson@EA.EPSON.COM> 04/20/06 4:59 PM >>>
This has nothing to do with ASCII.
I am trying to get from a SAS Character variable with this value
0B8C7C80660803
--------------
FCFCFCFFFFFFFF
02837380660803
To a SAS Numeric variable with this value
......
------
0878600
BCC0683