# Input clear previous input

**URL:** <https://techcommunity.softwareag.com/t/input-clear-previous-input/100985>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [July 17, 2012, 8:20pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985 "2012-07-17T20:20:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 17, 2012, 8:20pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/1 "2012-07-17T20:20:28Z")

</div>

hello,  
a question about the input

every new input it clears the screen, erasing the previous data input.

how can I show all the inputs one after the other without erasing the past?

Note: I’m going to study the MAP still.

Cláudio  
Brazil.

---

<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 17, 2012, 8:49pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/2 "2012-07-17T20:49:32Z")

</div>

Check the NO ERASE option on the INPUT statement.

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 17, 2012, 9:11pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/3 "2012-07-17T21:11:48Z")

</div>

Thanks.

How i download documentation about natural, and i see this options.

I skill need a way to find information.

Thanks for all…

Sorry my english.

---

<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 17, 2012, 9:19pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/4 "2012-07-17T21:19:35Z")

</div>

First of all it’s all in Natural for Windows’ HELP, and then there is

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/index.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/index.htm)

---

<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:** [July 17, 2012, 10:14pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/5 "2012-07-17T22:14:52Z")

</div>

Another reason for your input field values to disappear is the AD parameter setting. AD=A clears the input fields while AD=M allows modification. Here’s an example that you can try.

```auto
DEFINE DATA LOCAL
1 #A1 (A5) INIT <'A'>
1 #A2 (A5) INIT <'B'>
1 #N1 (N5) INIT <1>
1 #N2 (N5) INIT <2>
END-DEFINE
REPEAT
  INPUT #A1 (AD=ADL'_') 'input'
      / #N1 (AD=ADL'_')
     // #A2 (AD=MDL'_') 'modify'
      / #N2 (AD=MDL'_')
  DISPLAY #A1
          #N1
          #A2
          #N2
END-REPEAT
END
```

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 12:34am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/6 "2012-07-18T00:34:33Z")

</div>

Can i display informations in lines and INPUT after all displays?

display “Name”  
display “Adress”

input name …  
input adress …

---

<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 18, 2012, 12:52am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/7 "2012-07-18T00:52:55Z")

</div>

Without knowing what you are trying to achieve ist’s almost impossible to propose a solution,  
but basically yes, when you issue a number of DISPLAY statements followed by INPUT NO ERASE  
it will all end up on the same screen, but …

---

<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:** [July 18, 2012, 1:04am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/8 "2012-07-18T01:04:30Z")

</div>

A minor but significant point - DISPLAY is intended for columnar reports. If you want to write fields on successive lines, use a WRITE statement.

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 1:08am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/9 "2012-07-18T01:08:29Z")

</div>

Sorry.

I try do this: see all informations in screen before

Name  
Age  
City  
Country  
…

And after this, input each variable

---

<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 18, 2012, 1:23am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/10 "2012-07-18T01:23:56Z")

</div>

Well, as I said - it will work, but it won’t be pretty.

When you display just one bit of information / data from one record,  
then the easier approach is

INPUT (AD=M) NAME / AGE / CITY / COUNTRY

this will present the current values in modifiable fields.

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 1:37am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/11 "2012-07-18T01:37:52Z")

</div>

sorry I’m still thinking about these questions for this COBOL.

Thanks.

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 1:38am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/12 "2012-07-18T01:38:35Z")

</div>

what are the advantages of using natural / adabas instead of cobol?

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 2:41am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/13 "2012-07-18T02:41:34Z")

</div>

in INPUT x/y  
what is the limit for rows and columns?

---

<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:** [July 18, 2012, 3:05am UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/14 "2012-07-18T03:05:51Z")

</div>

> [@](#):
>
> what are the advantages of using natural / adabas instead of cobol?

Speed of developement as a result of fewer lines to code.

> [@](#):
>
> what is the limit for rows and columns?

250 each

---

<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:** [July 18, 2012, 12:58pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/15 "2012-07-18T12:58:50Z")

</div>

Claudio;

You may not like this post. However, if people read this and respond, I believe you will see that the overall message of the post is true.

You will NOT really learn Natural playing with it the way you are.

Take the example you posted which involved putting up a screen with four field names and allowing the user to input one at a time.

In order to completely explore alternatives, you would have to understand (and I may miss something here):

INPUT, INPUT NO ERASE, REINPUT, REINPUT FULL, DISPLAY, WRITE, Windowing (which involves many statements and Terminal Commands (the % commands in the documentation; there is a whole family of %W commands which do windowing), the %N, %Q, and %QS family of commands, and finally, Helproutines. As noted above, I may have left out some statements/commands/parameters, etc.

The way to learn Natural (and indeed any programming language) is a class. You should request same from your employer.

What is wrong with learning the way you are?

First, as an aside, you are very lucky. Wolfgang and Ralph, who responded to you did a good job pointing out some of the facilities (statements and commands) that I mentioned above. What is missing from their answers is the interplay you would have with an instructor.

For example, Wolfgang mentioned INPUT NO ERASE. In a classroom, the instructor could pull up a program with just INPUT, then swuitch to INPUT NO ERASE. Then discuss things to watch out for. Ralph pointed out the difference between AD=A and AD=M and supplied an example. But, in a class you would also learned about AD=O at the same time. You would also have learned about all the other options for AD=; not just by reading, but by seeing the effects of each option on a screen. Then there are Selection Boxes, Color, and all the other options for variables on a Map. In the Map editor, enter .e on a variable on the map to see the extended editor for the variable. An instructor might not do all the options at once, but you would at least be aware that there are such options.

Good luck in your efforts to participate in a class.

steve

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 4:20pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/16 "2012-07-18T16:20:35Z")

</div>

I appreciate the information.

is normal when a new user unknowingly enters the forum and start asking too many questions. Typically many of these questions very poorly made ??or unaware of what you really want.

I thank all colleagues for information and assistance.

unfortunately not think courses like the internet step by step.

only by the help of the natural isolate each command.

even have the notion of what is needed.

Some time ago I had to learn PHP and MySQL and went through it too, but to know that COBOL is working, I have a lot of persistence.

After two months with MySQL and PHP already had created a system that created your dynamic pages according to tables of MySQL

I appreciate the help. I apologize for any trouble I have caused.

---

<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 18, 2012, 4:25pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/17 "2012-07-18T16:25:31Z")

</div>

The question is:

WHY are you trying to learn Natural, where are you going from here ?

---

<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:** [July 18, 2012, 4:52pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/18 "2012-07-18T16:52:25Z")

</div>

I thank Software AG for offering Community Editions of Natural and Adabas and I encourage folks to try them. The on-line help in Natural for Windows is excellent and the complete set of manuals is available on the Web. The need for formal education is overstated (by someone whose signature line advertises services). Many have become capable Natural programmers without it.

Formal training has its place, but you won’t become an expert without a mentor; there is too much important information missing from the manuals, too many topics which must be discussed in detail. This forum is a great place to get (quick) answers to your (brief) questions, but it is not a replacement for a mentor.

When you are ready, Claudio, send me an e-mail, and I’ll provide a list of alternative resources.

---

<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 18, 2012, 5:00pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/19 "2012-07-18T17:00:02Z")

</div>

That was, to a certain extent, the direction of my question, Ralph.

Is it just to get a tick box on a CV, or is there a real perspective to it …

But if it’s starting to get serious I agree, self study, even with the help of the community,  
will not even get you ready for an interview that gets deeper than scratching the surface.

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 18, 2012, 6:15pm UTC](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985/20 "2012-07-18T18:15:22Z")

</div>

in Brazil there are many openings for natural / adabas in financial institutions.

As I know cobol

I decided to learning natural try new job opportunities.

I know it will take to enteder, must start now.

[Next page](https://techcommunity.softwareag.com/t/input-clear-previous-input/100985.md?page=2)
