Skip to Main Content
Due to the recent acquisition by IBM, the Adabas & Natural Ideas Portal does not contain ideas from products ApplinX and EntireX any longer. Please refer to the IBM Ideas Portal for these products from now on (IBMid required). Existing content will be migrated during the next few weeks.
Status Not in Plan
Categories Natural (NAT)
Created by Hezi Shirazi
Created on Nov 23, 2023

Examine command new options

Add new features for Examine command:

Let assume I have a string dynamic array:

#str (a/1:6) dynamic const <"10","1","31","20","2","21">

I want to search for the string "1" in that array, so I want to get index 2 that it is exactly the same

But in Natural Examine I will get Index 1 or if backwards I will get 6

So I want to propose 2 new features:

  1. Add in Examine support for REGEX

  2. Add in Examine with length is equal and value equal

  3. Add Examine on numbers/bool type also

  • Hezi Shirazi
    Reply
    |
    Dec 24, 2023

    It wont work when the actual value isnt in array, such as: "10","4","31","20","2","21"

    I will get invalid index : 1

    2 replies
  • Admin
    Eli Cohen
    Reply
    |
    Dec 20, 2023

    Hello Hezi and thank you for posting this request.


    1. REGEX - we are considering it under this Aha Idea - you may want to vote or leave comment. https://adabasnatural.ideas.aha.io/ideas/NATOS-I-73

    2. Examine full length and value could be achieved with this sample:

    DEFINE DATA LOCAL

    1 #A(A/1:10) DYNAMIC INIT <"11","1","2">

    1 #I(I4)

    END-DEFINE

    EXAMINE #A(*) FOR FULL "1"

    WITH DELIMITER ' '

    GIVING INDEX #I

    WRITE #I

    END


    3. EXAMINE is for string values, therefor we will not implement support of Numeric values. It could be solved with FOR loop.