Like statement using numeric fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ronen Levi
    New Member
    • May 2020
    • 1

    Like statement using numeric fields

    Hello to you.

    Is it possible in COBOL to write LIKE statement using numeric fields?

    For example:

    I want to search a numeric field XX in numeric field AA.

    XX = 21

    If I writing - WHERE AA LIKE XX - I'm getting nothing.

    If I writing - WHERE AA LIKE "%21%" - I'm getting all the records.
Working...