# Difference between DISPLAY and WRITE??

**URL:** <https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [April 21, 2006, 6:27pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855 "2006-04-21T18:27:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_mf](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rahul\_mf](https://techcommunity.softwareag.com/u/rahul_mf)\
**Post date:** [April 21, 2006, 6:27pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/1 "2006-04-21T18:27:56Z")

</div>

Hi all,

What is the major difference between DISPLAY and WRITE??

Rahul

---

<div class="post-metadata">

**Author:** ![Vasanth](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@Vasanth](https://techcommunity.softwareag.com/u/Vasanth)\
**Post date:** [April 21, 2006, 6:38pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/2 "2006-04-21T18:38:30Z")

</div>

In display you will get header row by default.  
Using write, you will need to separately write the headings.

---

<div class="post-metadata">

**Author:** ![rahul\_mf](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rahul\_mf](https://techcommunity.softwareag.com/u/rahul_mf)\
**Post date:** [April 21, 2006, 6:48pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/3 "2006-04-21T18:48:48Z")

</div>

Any other major difference ??

---

<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:** [April 21, 2006, 7:39pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/4 "2006-04-21T19:39:15Z")

</div>

The quick answer is: DISPLAY does more things automatically (like formatting of arrays). Please try out the following code:

```auto
define data local
01 structure
  02 #a10 (A10) init <'ABCD'>
  02 #a1 (A1/1:5) init <1,2,3,4,5> (HD='array')
  02 #n10 (N10) init <67890> (HD='numeric')
end-define
write nohdr structure
newpage
display structure
end
```

Please have a look at the “Natural Programming Guide \> Referenced Example Programs \> DISPLAY and WRITE Statements” to get more examples.

---

<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:** [April 25, 2006, 2:20am UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/5 "2006-04-25T02:20:59Z")

</div>

Hi Rahul;

DISPLAY was designed as a “spreadsheet” statement. Virtually anything you would do with a spreadsheet can be done with DISPLAY. This includes (as already noted) Column headers, row headers, pagewise system functions, etc.

By contrast, WRITE is “free form”. You must provide anything you want to see.

Rahul, have you not attended any Natural classes? Your questions would seem to reflect someone without any formal Natural classes. There is far more to know about Natural than what you would get from a manual. 🙂

steve

---

<div class="post-metadata">

**Author:** ![rahul\_mf](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rahul\_mf](https://techcommunity.softwareag.com/u/rahul_mf)\
**Post date:** [April 25, 2006, 9:26am UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/6 "2006-04-25T09:26:15Z")

</div>

Hi Steve,

I have not attended any Natural classes because here nobody knows Natural so no classes & no sessions for Natural 😢

---

<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:** [April 26, 2006, 10:40pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/7 "2006-04-26T22:40:36Z")

</div>

Are you trying to learn Natural on your own because you are simply interested in it; or are you actually working with Natural (writing or maintaining code)?

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, 2:40pm UTC](https://techcommunity.softwareag.com/t/difference-between-display-and-write/60855/8 "2021-04-02T14:40:35Z")

</div>


