MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RENAME command is not working in TSO

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Tue Dec 07, 2004 11:32 am    Post subject: RENAME command is not working in TSO Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Dec 07, 2004 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Tue Dec 07, 2004 11:53 am    Post subject: Reply with quote

SuperK,
For TSO RENAME also I'm not getting response messages.
_________________
Thanks
Back to top
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Tue Dec 07, 2004 12:03 pm    Post subject: Reply with quote

I mean, it is not prompting me to enter fielnames.
_________________
Thanks
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Dec 07, 2004 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Tue Dec 07, 2004 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Tue Dec 07, 2004 12:43 pm    Post subject: Reply with quote

Ohh SuperK, You mean to say that only the program got replaced/removed but not the HELP ino, right?
_________________
Thanks
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Dec 07, 2004 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Tue Dec 07, 2004 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Fri Dec 10, 2004 8:27 am    Post subject: Reply with quote

SuperK,
Thanks man. Program got replaced with REN command. REN is working now.
_________________
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group