LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: John Mattson <John_Mattson@EA.EPSON.COM>
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


Back to: Top of message | Previous page | Main SAS-L page