|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Selecting bits |
« View previous topic :: View next topic » |
Author |
Message
|
Nyusser |
Posted: Thu Sep 26, 2002 10:38 pm Post subject: Selecting bits |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
Hi,
I would like to compare and set/reset certain bits of an integer. Unfortunately, there seems to be no OR/AND/XOR-operators to achieve this. Any workarounds?
- Nyusser |
|
Back to top |
|
 |
Miriam Kaestner |
Posted: Fri Sep 27, 2002 1:34 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2001 Posts: 103 Location: IBM IT Education Services, Germany
|
There are ESQL functions BITAND, BITOR, BITXOR - they perform bitwise AND, OR, etc. on INTEGERs |
|
Back to top |
|
 |
Nyusser |
Posted: Mon Sep 30, 2002 12:46 am Post subject: |
|
|
Apprentice
Joined: 02 Jul 2002 Posts: 48
|
Thank you very much! I had somehow completely ignored those functions while reading ESQL Reference.  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|