| Date: | Thu, 7 Dec 2000 06:55:58 -0000 |
| Reply-To: | sashole@bellsouth.net |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Paul Dorfman <paul_dorfman@HOTMAIL.COM> |
| Subject: | Re: Need help with reading unprintable hex byte. |
|
| Content-Type: | text/html |
|---|
<html><DIV>
<P>Giulio,</P>
<P>if substr(put(byte, $hex2.),1) = '2' then do smth;</P>
<P>else do nothing;</P>
<P> </P>
<P>Kind regards,</P>
<P>===========================</P>
<P>Paul M. Dorfman</P>
<P>Jacksonville, Fl</P>
<P> ===========================<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Giulio Belrango <GIULIOBELRANGO@HOME.COM>
<DIV></DIV>>Reply-To: Giulio Belrango <GIULIOBELRANGO@HOME.COM>
<DIV></DIV>>To: SAS-L@LISTSERV.UGA.EDU
<DIV></DIV>>Subject: Need help with reading unprintable hex byte.
<DIV></DIV>>Date: Thu, 7 Dec 2000 00:33:38 GMT
<DIV></DIV>>
<DIV></DIV>>I'm working in an IBM OS/390 environment. I'm trying to 'read' the lower
<DIV></DIV>>half of a 1 character (byte).
<DIV></DIV>>
<DIV></DIV>>Example the 1 byte contains the value 'A2'. The character 'A' in the upper
<DIV></DIV>>half of the byte and the number '2' in the lower part of the byte, which is
<DIV></DIV>>an unprintable character. I have managed to read and print the whole
<DIV></DIV>>byte,(with this newsgroups help). What I need to do is to test the lower
<DIV></DIV>>half of the byte. In other words
<DIV></DIV>>If lower-half-of-byte = '2'
<DIV></DIV>> Then do something;
<DIV></DIV>> else nothing;
<DIV></DIV>>
<DIV></DIV>>Any help appreciated
<DIV></DIV><br clear=all><hr>Get more from the Web. FREE MSN Explorer download : <a href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>
|