# AD parameter (behaviour issue)

**URL:** <https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 29, 2010, 6:06pm UTC](https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998 "2010-06-29T18:06:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ats](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Ats](https://techcommunity.softwareag.com/u/Ats)\
**Post date:** [June 29, 2010, 6:06pm UTC](https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998/1 "2010-06-29T18:06:21Z")

</div>

Hi,

I know that AD is field/variable specific. But when I code following and execute on MF the o/p gets displayed in RED color (though AD=R is right justified, not sure if it applies to text as well. Seems NO from the output). Something happens at Natural back to change the default color?

```auto
WRITE 30X 'WELCOME TO NATURAL' (AD=R)
END
```

Also if AD=R doesn’t applies to the text within WRITE/DISPLAY, then shouldn’t it be a syntax error as it differ its function.

 ![untitled.JPG](https://global.discourse-cdn.com/techcommunity/original/2X/6/60b82384e0d388105c5fa10794ccd16ed5929009.jpeg)

---

<div class="post-metadata">

**Author:** ![Ats](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Ats](https://techcommunity.softwareag.com/u/Ats)\
**Post date:** [July 1, 2010, 11:47am UTC](https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998/2 "2010-07-01T11:47:50Z")

</div>

Hi Friends,

Will appreciate your thoughts on this. or is this a bug/problem with Natural?

---

<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:** [July 1, 2010, 4:53pm UTC](https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998/3 "2010-07-01T16:53:22Z")

</div>

Hi Ats,

I think it makes not much sense to right or left justify a constant. But I agree it can confuse and the doc is not consistent. :?

Perhaps it is a reminiscence of an older Natural version that this was accepted as colour attribute (and still is). :idea:

Following work all the same:

```auto
WRITE 'WELCOME1' (AD=R)
/ 'WELCOME2' (RE)      
/ 'WELCOME3' (CD=RE)   
END
```

---

<div class="post-metadata">

**Author:** ![Ats](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Ats](https://techcommunity.softwareag.com/u/Ats)\
**Post date:** [July 2, 2010, 5:58pm UTC](https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998/4 "2010-07-02T17:58:47Z")

</div>

Thanks Mogens!!

---

<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:58pm UTC](https://techcommunity.softwareag.com/t/ad-parameter-behaviour-issue/93998/5 "2021-04-02T14:58:42Z")

</div>


