> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of John H Kington
> 
> John,
> >
> > >Visualize it with these parameters:
> >
> > >INCLUDE COND=(1,6,CH,GE,C'SMITH ',AND,1,6,CH,LE,C'SMYTHE')
> > >
> > >Show how, e.g., c'SMILEY' in positions 1 through 6 would qualify
for
> > >Inclusion in the output.
> >
> > SMILEY would fail because every character is the same until you hit
> the L but what about SMO99Y where
> > you wanted every position in the field to be alphabetic?
> 
> >As specified, the second ("upper") bound is (1,6,CH,LE,C'SMYTHE'), so
> >"do the comparisons":
> 
> >First character 'S' is less or equal to 'S', so it "qualifies;
> >Second character 'M' is less or equal to 'M', so it "qualifies";
> >Third character 'O' is less or equal to 'Y', so it "qualifies";
> >Fourth character '9' is NOT less or equal to 'T', so the entire value
> >c'SMO99Y' is "disqualified".
> 
>  Oops. What about SMO#$! where you want every character to be
alphabetic.

Those would fail the "lower" bound c'SMITH '.  However, with the blank
(x'40') in the sixth position of the "lower bound" specification, any
"printable" EBCDIC character would qualify provided the first five
positions were greater or equal to c'SMITH'.  Thus the "lower bound"
indeed has a hole in it.

    -jc-

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to