DTRHELP.HLB  —  Functions  FN$BIT_OR
       Returns the bitwise OR of two longwords.

1  –  Input

       This function takes two arguments: two longwords. The two must be
       separated by a comma and enclosed in parentheses.

2  –  Output

       An integer number.

3  –  Example

       DTR> DECLARE OP1 PIC 99999999 LONG .;
       DTR> DECLARE OP2 PIC 99999999 LONG .;
       DTR> OP1 = 128+64+32 ;
       DTR> OP2 = 32+8+4+1 ;
       DTR> PRINT FN$BIT_OR(OP1,OP2);

         FN$BIT
           OR

               237

       DTR>
Close Help