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 (June 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 22 Jun 2009 17:16:15 -0700
Reply-To:     Kevin Y <kevin77711@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Kevin Y <kevin77711@YAHOO.COM>
Subject:      Re: Hex -- THANKS
In-Reply-To:  <16FD64291482A34F995D2AF14A5C932C07883611@MAIL002.prod.ds.russell.com>
Content-Type: text/plain; charset=iso-8859-1

Thanks Jim, Joe, and Mark for your kind help. ________________________________ From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM> To: SAS-L@LISTSERV.UGA.EDU Sent: Monday, June 22, 2009 9:42:25 PM Subject: Re: Hex Hi Kevin, www.lexjansen.com/pnwsug/2006/PN20MarkTerjesonBinary..pdf Hope this is helpful. Mark Terjeson Investment Business Intelligence Investment Management & Research Russell Investments 253-439-2367 Russell Global Leaders in Multi-Manager Investing -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Kevin Y Sent: Monday, June 22, 2009 6:14 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Hex Thanks Jim. Still not fully understand. When cc=27, why cchex=001B? What A,B,C,D,E,F stand for? Thanks! data test; do _n_=1 to 100; cc=0+_n_; cchex=put(cc,hex4.); output; end; run; Obs    CC    CCHEX   1      1    0001   2      2    0002   3      3    0003   4      4    0004   5      5    0005   6      6    0006   7      7    0007   8      8    0008   9      9    0009 10    10    000A 11    11    000B 12    12    000C 13    13    000D 14    14    000E 15    15    000F 16    16    0010 17    17    0011 18    18    0012 19    19    0013 20    20    0014 21    21    0015 22    22    0016 23    23    0017 24    24    0018 25    25    0019 26    26    001A 27    27    001B 28    28    001C 29    29    001D 30    30    001E 31    31    001F 32    32    0020 33    33    0021 34    34    0022 35    35    0023 36    36    0024 37    37    0025 38    38    0026 39    39    0027 40    40    0028 41    41    0029 42    42    002A 43    43    002B 44    44    002C 45    45    002D 46    46    002E 47    47    002F 48    48    0030 49    49    0031 50    50    0032 ________________________________ From: "Horne, Jim - James S" <Jim.S.Horne@LOWES.COM> To: SAS-L@LISTSERV.UGA.EDU Sent: Monday, June 22, 2009 7:28:22 PM Subject: Re: Hex Kevin, It has nothing to do with ASCII control characters or anything else esoteric.  17 decimal is 11 hexadecimal (16 + 1).  Since you asked for a 4 place field, that means that 17 in decimal is represented as 0011 in hexadecimal. Jim Horne Systems Programmer Large Systems Engineering & Messaging NC4IT Lowe's Companies, Inc. 1000 Lowe's Boulevard Mooresville, NC 704-758-5354 Jim.Horne@Lowes.com -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Kevin Y Sent: Monday, June 22, 2009 7:20 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Hex Want to know why cohex=0011 (based on the ASCII table 00=(null) and 11=(device control 1)? Thanks!! 1          data _null_; 2          cc=17; 3          cchex=put(cc,hex4.); 4          put _all_; 5          run; CC=17 CCHEX=0011 _ERROR_=0 _N_=1 NOTICE: All information in and attached to the e-mail(s) below may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure.  If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message.  If you have erroneously received this communication, please notify the sender immediately by phone (704-758-1000) or by e-mail and destroy all copies of this message (electronic, paper, or otherwise).  Thank you.


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