# Want to remove EDIT MASK on a field and also want to change the Datatype of the field

**URL:** <https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 21, 2012, 12:29pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795 "2012-06-21T12:29:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naga\_Rao](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Naga\_Rao](https://techcommunity.softwareag.com/u/Naga_Rao)\
**Post date:** [June 21, 2012, 12:29pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/1 "2012-06-21T12:29:16Z")

</div>

Hi ,  
I am Beginner to Naturals. Can any one pls help me how to remove the EDITMASK present on a particular Field and also how can i change the datatype of that field( From Numeric to Alpha Numeric).

Thanks in Advance!!!

---

<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:** [June 21, 2012, 3:04pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/2 "2012-06-21T15:04:05Z")

</div>

More information required …

Is that field defined in a data area, or in a program ?  
Do you want to remove the edit mask from a field on a map ?

---

<div class="post-metadata">

**Author:** ![Naga\_Rao](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Naga\_Rao](https://techcommunity.softwareag.com/u/Naga_Rao)\
**Post date:** [June 22, 2012, 7:50am UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/3 "2012-06-22T07:50:29Z")

</div>

Yes it is defined in a map…

---

<div class="post-metadata">

**Author:** ![Naga\_Rao](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Naga\_Rao](https://techcommunity.softwareag.com/u/Naga_Rao)\
**Post date:** [June 22, 2012, 9:59am UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/4 "2012-06-22T09:59:55Z")

</div>

I Tried to do the following by going through a PDF which is present in the Software AG Site…

.E on the field which i want to remove the EDIT MASK, then im able to remove the EDIT MASK by deleting the values present in that EM Field under the attribute definitions.

I am able to change all the other things except the DATATYPE of field. I tried almost all the ways but not able to change the datatype of that variable… Please help me out in this…

---

<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:** [June 22, 2012, 10:08am UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/5 "2012-06-22T10:08:42Z")

</div>

I assume the field in question is imported from a Program or data area,  
you will need to change the data type there first.

But, when this is also a database field you’ll need to start THERE.

---

<div class="post-metadata">

**Author:** ![Naga\_Rao](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Naga\_Rao](https://techcommunity.softwareag.com/u/Naga_Rao)\
**Post date:** [June 22, 2012, 11:42am UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/6 "2012-06-22T11:42:14Z")

</div>

Hi ,  
Thank u very much for the reply… 🙂

I think this is defined from another program… there is a variable against CV attribute in the MAP…

Can you please let me know how to edit particular Program or DATAAREA or Databse regarding this?

---

<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:** [June 22, 2012, 12:48pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/7 "2012-06-22T12:48:22Z")

</div>

If the field is a database field you will have to talk with your DBA regarding whether the field format can be changed (presumably there are other users). You could also check with the person(s) who will be using the map. Perhaps they can be convinced to pass a different formatted field.

If the field is just a simple variable, you need to talk with whoever wrote the specifications for the Map to see if the format could be changed.

If all you want to do is change the length of a field, you could use the AL or NL parameters.

Exactly what is it you want to change from and to?

steve

---

<div class="post-metadata">

**Author:** ![Naga\_Rao](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Naga\_Rao](https://techcommunity.softwareag.com/u/Naga_Rao)\
**Post date:** [June 22, 2012, 1:51pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/8 "2012-06-22T13:51:47Z")

</div>

Hi Steve,  
Thanks for the Reply!!!

My actual problem is,  
In a Map, i need to change the DATATYPE of a field. I think this field is defined from some other GDA or PGM. My Problem is how to locate from where that particular field is defined from? Whether its GDA or LDA or Some other Pgm. Is there any way to find the origin of the field definition…

I searched almost all the ways… but not able to locate frm wr the definition has made…  
Pls help me out in finding the origin of this definition.

Thanks in Advance!!!

---

<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:** [June 22, 2012, 2:12pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/9 "2012-06-22T14:12:27Z")

</div>

The map editor does not keep a reference to where the field has been imported  
from, so you will have to use the Natural SCAN command to find the origin.

---

<div class="post-metadata">

**Author:** ![Naga\_Rao](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Naga\_Rao](https://techcommunity.softwareag.com/u/Naga_Rao)\
**Post date:** [June 22, 2012, 3:08pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/10 "2012-06-22T15:08:03Z")

</div>

Okay Thanks a lot for a timely reply!!! Will try to find… 🙂 🙂

---

<div class="post-metadata">

**Author:** ![Jerome\_LeBlanc](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/jerome_leblanc/32/111_2.png) [@Jerome\_LeBlanc](https://techcommunity.softwareag.com/u/Jerome_LeBlanc)\
**Post date:** [June 22, 2012, 4:00pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/11 "2012-06-22T16:00:53Z")

</div>

I don’t know if this helps, but…

When you import a field from a data area or program onto a map, the map editor flags that field as imported and prevents you from updating the datatype, as you have discovered. If you simply change the name of the field in the field editor that will remove the flag and allow you to change the datatype. Once you have changed the name, you can change it back to it’s original name.

You still need to track down where the field is defined and update the datatype there or you will get a parameter conflict when inputting the map. The field must be defined in the module that invokes the map, so you could start there. It will either be defined locally or in an data area used by that module.

---

<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:02pm UTC](https://techcommunity.softwareag.com/t/want-to-remove-edit-mask-on-a-field-and-also-want-to-change-the-datatype-of-the-field/100795/12 "2021-04-02T15:02:05Z")

</div>


