# Numeric Super

**URL:** <https://techcommunity.softwareag.com/t/numeric-super/80615>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Mainframes, Adabas-Basics-on-Mainframes\
**Created:** [March 27, 2009, 4:54pm UTC](https://techcommunity.softwareag.com/t/numeric-super/80615 "2009-03-27T16:54:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Collins1](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jeff\_Collins1](https://techcommunity.softwareag.com/u/Jeff_Collins1)\
**Post date:** [March 27, 2009, 4:54pm UTC](https://techcommunity.softwareag.com/t/numeric-super/80615/1 "2009-03-27T16:54:54Z")

</div>

When a superdescriptor contains all numeric fields, I’ve always seen it defined as a binary field ( eg, 3 fields, N10, N4 & N10 = B24 super). Is this mandatory, best practice or shop standards?

If the super in the example above were defined as N24 instead of B24, would it explain why:

READ file BY super

returns no records while

READ file BY super = #STARTING-VALUE

returns records?

---

<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:** [March 27, 2009, 9:15pm UTC](https://techcommunity.softwareag.com/t/numeric-super/80615/2 "2009-03-27T21:15:49Z")

</div>

Yes, the binary format is mandatory for superdescriptors comprised entirely of numeric components. Adabas creates a binary descriptor.

> [@](#):
>
> If the super in the example above were defined as N24 instead of B24, would it explain why:
> 
> READ file BY super
> 
> returns no records while
> 
> READ file BY super = #STARTING-VALUE
> 
> returns records?

I can’t explain this behavior. Use TEST DBLOG to compare the contents of the Value Buffer for each READ.

---

<div class="post-metadata">

**Author:** ![DougS](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@DougS](https://techcommunity.softwareag.com/u/DougS)\
**Post date:** [April 2, 2009, 2:27am UTC](https://techcommunity.softwareag.com/t/numeric-super/80615/3 "2009-04-02T02:27:51Z")

</div>

> [@](#):
>
> READ file BY super
> 
> returns no records while

If Natural is initializing the “super” to spaces (x’4040 …') this may be beyond any data in your file.

---

<div class="post-metadata">

**Author:** ![Jeff\_Collins1](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jeff\_Collins1](https://techcommunity.softwareag.com/u/Jeff_Collins1)\
**Post date:** [April 2, 2009, 6:54pm UTC](https://techcommunity.softwareag.com/t/numeric-super/80615/4 "2009-04-02T18:54:30Z")

</div>

> [@DougS](#):
>
> > [@](#):
> >
> > READ file BY super
> > 
> > returns no records while
> 
> If Natural is initializing the “super” to spaces (x’4040 …') this may be beyond any data in your file.

There’s no way of knowinf for sure, but that may have been what was happening. The super is now defined properly and everything is working as expected.

---

<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, 2009, 7:41pm UTC](https://techcommunity.softwareag.com/t/numeric-super/80615/5 "2009-04-02T19:41:51Z")

</div>

> [@Jeff Collins](#):
>
> When a superdescriptor contains all numeric fields, I’ve always seen it defined as a binary field ( eg, 3 fields, N10, N4 & N10 = B24 super). Is this mandatory, best practice or shop standards?

The rules are defined here:

[http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada814mfr/adamf/util/flddefs.htm#fndef\_supde](http://techcommunity.softwareag.com/ecosystem/documentation/adabas/ada814mfr/adamf/util/flddefs.htm#fndef_supde)

- The superdescriptor format is B (binary) if no element of the superdescriptor is derived from an A (alphanumeric) or W (wide-character) parent field;  
if any element of the superdescriptor is derived from an A or W parent field, the format of the superdescriptor reflects the last occurring A or W element;  
for example, if the last occurring A or W element is W, the format of the superdescriptor is W.

---

<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:51pm UTC](https://techcommunity.softwareag.com/t/numeric-super/80615/6 "2021-04-02T14:51:44Z")

</div>


