skip to main content

Library Routines : CBL_EQ

CBL_EQ
The CBL_EQ library routine compares each bit of the first operand to the corresponding bit of its second operand. If both bits are the same, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0.
Syntax:
 CALL "CBL_EQ" USING source 
Parameters:
Return code:
returnCode can be any numeric data item and provides additional information:
Examples:
Example - Get the bit level EQ result between characters 3 and 4
move "3" to char1 *> internal bit representation 00110011
move "4" to char2 *> internal bit representation 00110100
call "cbl_eq" using char1 char-eq-result
if return-code = 0
   display message "EQ operation between " char1 " and " char2

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left