View previous topic :: View next topic
|
Author |
Message |
marisalondon
New User
Joined: 21 Aug 2009 Posts: 10 Location: London
|
|
|
|
Hi
I am trying to create a skeleton to rename one dataset. The name of the dataset is a variable, so it will not work if I include it as part of the SYSIN. I have tried the direct command as well as including the instruction in a dataset.
Any guidance or workaround?
I am using IDCAMS, with the command ALTER &NAME NEWNAME(&NAME..OLD)
Many thanks,
M |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Use the TSO RENAME command instead, since that could be passed via a PARM statement. |
|
Back to top |
|
|
marisalondon
New User
Joined: 21 Aug 2009 Posts: 10 Location: London
|
|
|
|
Thanks Kevin. It is working now. |
|
Back to top |
|
|
|