Rename a natural module

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

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

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

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.

Thanks a lot Gerome that helped me a lot