Try 5 pairs of conditions?
INCLUDE COND=((5,4,CH,EQ,C'0205',AND,83,3,CH,EQ,C'YES'),
                  OR,(5,4,CH,EQ,C'0205',AND,88,3,CH,EQ,C'YES'),
                   OR,(5,4,CH,EQ,C'0205',AND,93,3,CH,EQ,C'YES'),
                   OR,(5,4,CH,EQ,C'0205',AND,98,3,CH,EQ,C'YES'),
                   OR,(5,4,CH,EQ,C'0102',AND,28,7,CH,NE,C'USE    '))

On Fri, Jul 30, 2021 at 9:36 AM Radoslaw Skorupka
<r.skoru...@hotmail.com> wrote:
>
> The following statement is syntactically correct:
>
>
> INCLUDE COND=((5,4,CH,EQ,C'0205',AND,(83,3,CH,EQ,C'YES',OR,
>                                        88,3,CH,EQ,C'YES',OR,
>                                        93,3,CH,EQ,C'YES',OR,
>                                        98,3,CH,EQ,C'YES')),
>              OR,(5,4,CH,EQ,C'0102',AND,28,7,CH,NE,C'USE    '))
>
> however SORTOUT contains only records '0205'.
> The input contains '0102' and '0205' records and simple statement with
> only one type show expected output.
>
> Simple statement
> INCLUDE COND=((5,4,CH,EQ,C'0102'),OR,
>                                 (5,4,CH,EQ,C'0205'))
> show all records of both types - 0102 and 0205.
>
> However any AND inside 0205 causes only records with YES in proper field
> are returned to output. So "YES condition applies to both 0102 and 0205
> records, despite of parenthesis.
>
> --
> Radoslaw Skorupka
> Lodz, Poland
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to