HP3000-L Archives

June 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Mon, 18 Jun 2001 18:45:58 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
I have this file that looks like this:
E2 2A C7 04 00 00 07 D3 E8.....ad nauseum.  I have to look at the file a
byte at a time to decide what to do.  I have the file set up as a bunch of
pic 9 fields.  My problem is that my compares fail.  In one instace field-1,
a pic 9, is hex 72 or dec 114.  My code:

if field-1 < 113
    display "Less than 113"
 else
    display "Greater than 113".

  It displays "Less than 113".

Any ideas?

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2