# Changing types

**URL:** <https://techcommunity.softwareag.com/t/changing-types/61176>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [June 28, 2006, 8:31pm UTC](https://techcommunity.softwareag.com/t/changing-types/61176 "2006-06-28T20:31:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolbuddy](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@koolbuddy](https://techcommunity.softwareag.com/u/koolbuddy)\
**Post date:** [June 28, 2006, 8:31pm UTC](https://techcommunity.softwareag.com/t/changing-types/61176/1 "2006-06-28T20:31:10Z")

</div>

Hi,  
can anyone tell me wat s the command that can be used to change the type of a module.  
For eg,  
i want to change module which is subprogram to a subroutine, which should have the same name.

---

<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:** [June 28, 2006, 8:36pm UTC](https://techcommunity.softwareag.com/t/changing-types/61176/2 "2006-06-28T20:36:00Z")

</div>

Type the following on the editor’s command line:

```auto
set type S
```

or N for Subprogram, or P for Program and so on.

EDIT: And here is the link to the documentation:  
[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat421mf/edis/edis\_mf\_pgm\_0030.htm#SET\_TYPE](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat421mf/edis/edis_mf_pgm_0030.htm#SET_TYPE)

---

<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:** [June 28, 2006, 9:19pm UTC](https://techcommunity.softwareag.com/t/changing-types/61176/3 "2006-06-28T21:19:02Z")

</div>

The RENAME command has an option to change the source module type.

---

<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 28, 2006, 9:30pm UTC](https://techcommunity.softwareag.com/t/changing-types/61176/4 "2006-06-28T21:30:39Z")

</div>

One caveat to RENAME - you can only change the type if the object code does not exist.

---

<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/changing-types/61176/5 "2021-04-02T14:40:43Z")

</div>


