View previous topic :: View next topic |
Author |
Message |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Tue Dec 07, 2004 11:32 am Post subject: RENAME command is not working in TSO |
|
|
Hi,
I tried the below command for renaming:
TSO RENAME 'QUAL1.QUAL2.DATA' 'QUAL1.QUAL2.DATA2' It is not working, even not showing any response message.
But when I type
TSO HELP RENAME
I'm getting the HELP info regarding RENAME command. So, My system is having rename command, but why the datasets are not getting renamed? _________________ Thanks |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Dec 07, 2004 11:49 am Post subject: |
|
|
What happened when you issued TSO RENAME without any parameters? The program should prompt you for the input dataset names. There are no messages issued when the rename is successful. |
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Tue Dec 07, 2004 11:53 am Post subject: |
|
|
SuperK,
For TSO RENAME also I'm not getting response messages. _________________ Thanks |
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Tue Dec 07, 2004 12:03 pm Post subject: |
|
|
I mean, it is not prompting me to enter fielnames. _________________ Thanks |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Dec 07, 2004 12:12 pm Post subject: |
|
|
I think then, you can conclude, that someone has replaced the TSO RENAME command with another program also called RENAME that works differently, or that your LINKLIST concatenation is pointing to the wrong library for the command.
On my system, the command is in 'SYS1.CMDLIB'. |
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Tue Dec 07, 2004 12:24 pm Post subject: |
|
|
SuperK
If the replaced works differently how could it show the following info when i try TSO HELP RENAME:
FUNCTION -
THE RENAME COMMAND IS USED TO RENAME A DATA SET OR A PARTITIONED DATA
SET MEMBER OR TO CREATE AN ALIAS FOR A PARTITIONED DATA SET MEMBER.
SYNTAX -
RENAME 'DSNAME1' 'DSNAME2' ALIAS
REQUIRED - 'DSNAME1' AND 'DSNAME2'
DEFAULTS - NONE
OPERANDS -
'DSNAME1'- THE CURRENT DATA SET NAME.
'DSNAME2'- THE NEW DATA SET NAME TO BE ASSIGNED.
ALIAS - MEMBER NAME SPECIFIED BY 'DSNAME2' IS TO BE AN ALIAS
RATHER THAN A REPLACEMENT.
coming to command library, same library exists in my system, but i don't have access now. _________________ Thanks |
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Tue Dec 07, 2004 12:43 pm Post subject: |
|
|
Ohh SuperK, You mean to say that only the program got replaced/removed but not the HELP ino, right? _________________ Thanks |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Dec 07, 2004 2:52 pm Post subject: |
|
|
Yes, that is a distinct possibility. At this point, you should probably contact your MVS SYSPROG's and find out if that was in fact done, and maybe they can explain why.
As an alternative to RENAME, the IDCAMS ALTER (TSO ALTER) command would accomplish the same task:
Code: |
TSO ALTER 'QUAL1.QUAL2.DATA' NEWNAME('QUAL1.QUAL2.DATA2')
|
|
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Tue Dec 07, 2004 4:55 pm Post subject: |
|
|
SuperK,
TSO ALTER 'QUAL1.QUAL2.DATA' NEWNAME('QUAL1.QUAL2.DATA2') is also not working for me.
ALTER is for changing attributes, right? _________________ Thanks |
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Fri Dec 10, 2004 8:27 am Post subject: |
|
|
SuperK,
Thanks man. Program got replaced with REN command. REN is working now. _________________ Thanks |
|
Back to top |
|
 |
|
|