# Unix to Linux- Find sorted / CP / AD=Y

**URL:** <https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [May 4, 2012, 5:53pm UTC](https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488 "2012-05-04T17:53:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Smith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/john_smith/32/39012_2.png) [@John\_Smith](https://techcommunity.softwareag.com/u/John_Smith)\
**Post date:** [May 4, 2012, 5:53pm UTC](https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488/1 "2012-05-04T17:53:46Z")

</div>

Hi,

Right now I am facing with some problems that I am not sure if it is documented.

I am cataloging the objects (catall) after migrating from Unix to Linux (using SYSOBJH transfer), and, at this moment, see below the problems:

1. On Unix NAT5 version, the applications use FIND – SORTED BY. The field on SORTED BY is not a descriptor. However, on NAT6, the compiler is checking if this field is or not a descriptor and if not, an error occurs. Does anyone know if there is a parameter or an option to solve it? Or do I need to set on DDM that the field is a descriptor? (there are many fields and objects with this scenario)

2. After transferring the objects using SYSOBJH - source only, just one object (at this moment), I cannot edit it. An error – NAT3420 Source Code Conflit …0xE9 and code page UTF-8. Do I need to set the parameter CP? Why the other objects work fine?

3. Does anyone know if the statement – MOVE (AD=Y) is not allowed on NAT6?

Thank you.

---

<div class="post-metadata">

**Author:** ![John\_Smith](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/john_smith/32/39012_2.png) [@John\_Smith](https://techcommunity.softwareag.com/u/John_Smith)\
**Post date:** [May 4, 2012, 7:15pm UTC](https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488/2 "2012-05-04T19:15:17Z")

</div>

Hi,

According to the post, the item 1 is a bug that happened on NAT5, NAT61, and it was corrected on NAT62, NAT63.

tks.

---

<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:** [May 7, 2012, 9:53am UTC](https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488/3 "2012-05-07T09:53:52Z")

</div>

> [@John Smith](#):
>
> According to the post, the item 1 is a bug that happened on NAT5, NAT61, and it was corrected on NAT62, NAT63.

Right. To solve this you can

1. make the field a descriptor  
or
2. mark the field with an “N” inside the DDM. [http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6312unx/sm/find.htm#WITH\_Clause](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6312unx/sm/find.htm#WITH_Clause)

See also [FIND viewname WITH descriptor SORTED BY field2 - Adabas-Natural - Software AG Tech Community & Forums](http://tech.forums.softwareag.com/techjforum/posts/list/23409.page)

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [May 7, 2012, 12:24pm UTC](https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488/4 "2012-05-07T12:24:59Z")

</div>

> [@](#):
>
> 1. Does anyone know if the statement – MOVE (AD=Y) is not allowed on NAT6?

As far as I know this is not allowed anywhere in Natural.

AD=Y is associated with a variable being displayed (WRITE, INPUT, PRINT, DISPLAY).

For example, look at (and run) the following:

define data local  
1 #a (a3)  
1 #c (c)  
1 #b (a5)  
end-define  
move (cd=ye) to #c  
input (cv=#c) #a #b (ad=y)  
end

steve

---

<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, 3:01pm UTC](https://techcommunity.softwareag.com/t/unix-to-linux-find-sorted-cp-ad-y/100488/5 "2021-04-02T15:01:56Z")

</div>


