# Asking solution related to maps in Natural Adabas Mainframes

**URL:** <https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [February 25, 2019, 3:05pm UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927 "2019-02-25T15:05:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyanka\_Chilka](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Priyanka\_Chilka](https://techcommunity.softwareag.com/u/Priyanka_Chilka)\
**Post date:** [February 25, 2019, 3:05pm UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927/1 "2019-02-25T15:05:27Z")

</div>

Hi

In my requirement , I want to add an array field(MU) in map which is having 15 occurrences.  
For example :  
Fieldname : &xxxx&xxxx&xxxx&xxxx&xxxx&xxxx&xxxx&xxxx&xxxx&xxxx  
&xxxx&xxxx&xxxx&xxxx&xxxx

using Map editor I know to add fields which is having even occurences…  
Can anybody please tell me, how to add odd occurrences like the given example.

Thanks in advance 🙂

---

<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:** [February 25, 2019, 11:49pm UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927/2 "2019-02-25T23:49:37Z")

</div>

Have you tried simply specifying 15 occurrences? If you get an error; what is the error.

Are you trying to place the occurrences vertically or horizontally?

---

<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:** [February 26, 2019, 1:29am UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927/3 "2019-02-26T01:29:32Z")

</div>

Yes, Natural wants to display a nice rectangle; he makes you enter number of rows and number of columns. If you specify 15 occurrences, Natural rounds to 16 when you enter “8x2”.

There is a way to break the rule, but it’s very limited in use and a little time-consuming. It presumes that all occurrences can fit on a single line to begin with, but perhaps you could try a 250-character line.

My example has seven occurrences.

```auto
&XXXXX&XXXXX&XXXXX&XXXXX&XXXXX&XXXXX&XXXXX
```

I moved the last three of them individually using the .m field command.

```auto
&XXXXX&XXXXX&XXXXX&XXXXX.mXXXX&XXXXX&XXXXX      
```

Result:

```auto
&XXXXX&XXXXX&XXXXX&XXXXX
&XXXXX&XXXXX&XXXXX      
```

---

<div class="post-metadata">

**Author:** ![Priyanka\_Chilka](https://avatars.discourse-cdn.com/v4/letter/p/ba8739/32.png) [@Priyanka\_Chilka](https://techcommunity.softwareag.com/u/Priyanka_Chilka)\
**Post date:** [February 26, 2019, 8:27am UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927/4 "2019-02-26T08:27:14Z")

</div>

@Ralph Zbrog

Your solution has worked.  
Thank you so much 🙂

Thanks & Regards  
Priyanka Chilka

---

<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:** [February 26, 2019, 12:18pm UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927/5 "2019-02-26T12:18:49Z")

</div>

Why not just REDEFINE #ARRAY (A4/1:15) into #firstline (a4/1:10) and #secondline (a4/1:5)

Both Ralph’s solution and the REDEFINE are amenable to breaking the array into as many segments of any given number of occurrences, and placing the segments anywhere on the map.

---

<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:42pm UTC](https://techcommunity.softwareag.com/t/asking-solution-related-to-maps-in-natural-adabas-mainframes/202927/6 "2021-04-02T15:42:22Z")

</div>


