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 (December 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.
Comments:   To: giuliobelrango@HOME.COM
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>&nbsp;</P> <P>Kind regards,</P> <P>===========================</P> <P>Paul M. Dorfman</P> <P>Jacksonville, Fl</P> <P>&nbsp;===========================<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>&gt;From: Giulio Belrango <GIULIOBELRANGO@HOME.COM> <DIV></DIV>&gt;Reply-To: Giulio Belrango <GIULIOBELRANGO@HOME.COM> <DIV></DIV>&gt;To: SAS-L@LISTSERV.UGA.EDU <DIV></DIV>&gt;Subject: Need help with reading unprintable hex byte. <DIV></DIV>&gt;Date: Thu, 7 Dec 2000 00:33:38 GMT <DIV></DIV>&gt; <DIV></DIV>&gt;I'm working in an IBM OS/390 environment. I'm trying to 'read' the lower <DIV></DIV>&gt;half of a 1 character (byte). <DIV></DIV>&gt; <DIV></DIV>&gt;Example the 1 byte contains the value 'A2'. The character 'A' in the upper <DIV></DIV>&gt;half of the byte and the number '2' in the lower part of the byte, which is <DIV></DIV>&gt;an unprintable character. I have managed to read and print the whole <DIV></DIV>&gt;byte,(with this newsgroups help). What I need to do is to test the lower <DIV></DIV>&gt;half of the byte. In other words <DIV></DIV>&gt;If lower-half-of-byte = '2' <DIV></DIV>&gt; Then do something; <DIV></DIV>&gt; else nothing; <DIV></DIV>&gt; <DIV></DIV>&gt;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>


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