# Defining Descriptor

**URL:** <https://techcommunity.softwareag.com/t/defining-descriptor/78694>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Basics-on-Mainframes\
**Created:** [August 6, 2008, 5:37pm UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694 "2008-08-06T17:37:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROHAN\_LOBO](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@ROHAN\_LOBO](https://techcommunity.softwareag.com/u/ROHAN_LOBO)\
**Post date:** [August 6, 2008, 5:37pm UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694/1 "2008-08-06T17:37:55Z")

</div>

Hi All,

I have 2 questions about Descriptor:

1. If I am using some descriptor in a program, Is it necessary to define that descriptor inside define data? If no what is the reason?

2. I am reading a file for example employee file using 2 descriptors department and employee id. so internally how many inverted lists will be created?

Thanks,  
Rohan.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 6, 2008, 5:43pm UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694/2 "2008-08-06T17:43:49Z")

</div>

> [@ROHAN LOBO](#):
>
> 1. If I am using some descriptor in a program, Is it necessary to define that descriptor inside define data? If no what is the reason?

No, because the DDM is doing that for you.

> [@ROHAN LOBO](#):
>
> 1. I am reading a file for example employee file using 2 descriptors department and employee id. so internally how many inverted lists will be created?

You are using two inverted lists then.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [August 6, 2008, 10:06pm UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694/3 "2008-08-06T22:06:49Z")

</div>

If you are using the THRU clause (or the equivalent ENDING AT) of the READ statement, then you will need to define the descriptor within the view in your program.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [August 6, 2008, 10:07pm UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694/4 "2008-08-06T22:07:08Z")

</div>

If you are using the THRU clause (or the equivalent ENDING AT) of the READ statement, then you will need to define the descriptor within the view in your program.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 7, 2008, 11:38am UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694/5 "2008-08-07T11:38:38Z")

</div>

> [@Matthias](#):
>
> > [@ROHAN LOBO](#):
> >
> > 1. I am reading a file for example employee file using 2 descriptors department and employee id. so internally how many inverted lists will be created?
> 
> You are using two inverted lists then.

Maybe I misunderstood your question…  
First of all: An inverted list has to deal with the descriptor itself. It is created during the creation of a descriptor - not during a find command. Maybe “list of ISNs” would be the correct term in your question.

If you talking about Natural’s FIND-command with 2 descriptions, you will get one list of ISNs from Adabas. Internally, Adabas creates 2 ISN-lists and merges these lists.

In fact a Natural-FIND is a combination of several ADABAS-Commands (S1-S8). For more information please see the Adabas-documentation:

[http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada813mfr/adamf/comref/commands.htm#commands](http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada813mfr/adamf/comref/commands.htm#commands)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:50pm UTC](https://techcommunity.softwareag.com/t/defining-descriptor/78694/6 "2021-04-02T14:50:43Z")

</div>


