> -----Original Message----- > From: IBM Mainframe Discussion List On Behalf Of John H Kington > > John, > > > John, > > >> > > >> >INCLUDE COND=(1,9,CH,GE,C'000000000',AND,1,9,CH,LE,C'999999999') > > >> > > >> That would allow '00x000001'. > > > > > >How so? Any position in the field less than c'0' (x'F0') would cause > > >the entire field to evaluate less than c'000000000', thus failing the > GE > > >requirement; and any position in the field greater than c'9' (x'F9') > > >would cause the entire field to evaluate greater than c'999999999', > thus > > >failing the LE requirement. > > > > Once you hit a character that is greater than zero (F0) in any > position in the field, the remainder of > > the field can be anything including blanks or hex zeros for the first > test. Any character less than 9 > > (F9) will satisfy the second part of the test. > > >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". -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