HP3000-L Archives

May 2004, Week 1

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:
"Emerson, Tom" <[log in to unmask]>
Reply To:
Emerson, Tom
Date:
Wed, 5 May 2004 17:22:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
> From: Bill Cadier
> 
> Ray asks an interesting technical question:
> 
> > Given the following WS:
> >       88  TEST-RANGE               VALUE "B" THRU "Y".
> >
> > Does the compiler [...] (generate code to test each possible value)
> 
[previously, I replied with:]

> This is a big of a SWAG, but I'd imagine that since you've 
> specified a "thru" condition/range, the compiler might only 
> test the endpoints, as in
> 
>   IF (testvar >= "B") AND (testvar <= "Y")

and Bill confirms:

> COBOL is only checking the boundary values of an 88 item 
> using "thru" and not checking
> each value in the range. To determine this I added
> 
> CALL INTRINSIC "DEBUG".
> IF NOT TEST-RANGE ...

So, my "guess" was rather accurate after all...

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

ATOM RSS1 RSS2