On Fri, 30 Jul 2021 09:54:51 -0500, Mike Schwab wrote:

>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    '))
>
What's DFSORT's operator precedence?  Was it necessary to bracket the
conjunctions in order that they have higher precedence than
the alternations?

Are you just rewriting Radoslaw's expression according to the Distributive Law?
Does DFSORTT not recognize the Distributive Law?

>On Fri, Jul 30, 2021 at 9:36 AM Radoslaw Skorupka 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.

-- gil

----------------------------------------------------------------------
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