# Rename a natural module

**URL:** <https://techcommunity.softwareag.com/t/rename-a-natural-module/75323>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [September 5, 2007, 1:01pm UTC](https://techcommunity.softwareag.com/t/rename-a-natural-module/75323 "2007-09-05T13:01:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishi](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rishi](https://techcommunity.softwareag.com/u/rishi)\
**Post date:** [September 5, 2007, 1:01pm UTC](https://techcommunity.softwareag.com/t/rename-a-natural-module/75323/1 "2007-09-05T13:01:00Z")

</div>

Hi,

I have some 30 modules to be renamed with the same letter.

Say if the modules’ names are lp1260,lp340 , I need to rename the first character alone to h … hp1260,hp340  
Is there any shortcut of renaming the modules or should it be done manually everytime.  
Need some light on this

Thanks

---

<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:** [September 5, 2007, 4:27pm UTC](https://techcommunity.softwareag.com/t/rename-a-natural-module/75323/2 "2007-09-05T16:27:10Z")

</div>

There are several SYSEXT programs that will produce a list (in an array) of module names. You could then use another USR to save programs/objects with new names.

HOWEVER, for 30 modules…

You could have renamed them in less time than it took to logon to the discussion forum and type your posting.

steve

---

<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:** [September 5, 2007, 10:59pm UTC](https://techcommunity.softwareag.com/t/rename-a-natural-module/75323/3 "2007-09-05T22:59:10Z")

</div>

An alternative to SYSEXT is to use the stack command. I have done this in the past to rename a bunch of modules:

```auto
STACK COMMAND 'RENAME XJDR0016 XXDR0016'
STACK COMMAND 'RENAME XJDR9002 XXDR9002'
STACK COMMAND 'RENAME XJDRSTUD XXDRSTUD'
STACK COMMAND 'RENAME XJDRTASK XXDRTASK'
STACK COMMAND 'RENAME XJDRTBLF XXDRTBLF'
STACK COMMAND 'RENAME XJDRTENR XXDRTENR'
STACK COMMAND 'RENAME XJDRTID XXDRTID '
END
```

Copy these lines into a program and run it from the natural command line.

---

<div class="post-metadata">

**Author:** ![rishi](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rishi](https://techcommunity.softwareag.com/u/rishi)\
**Post date:** [September 10, 2007, 3:02pm UTC](https://techcommunity.softwareag.com/t/rename-a-natural-module/75323/4 "2007-09-10T15:02:15Z")

</div>

Thanks a lot Gerome that helped me a lot

---

<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:48pm UTC](https://techcommunity.softwareag.com/t/rename-a-natural-module/75323/5 "2021-04-02T14:48:42Z")

</div>


