Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rename Dataset

598 views
Skip to first unread message

Steve Neeland

unread,
Mar 24, 2003, 3:22:51 PM3/24/03
to
Is there a way within Rexx code to rename a dataset or is there a better JCL
method?

Steve

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX

Richards.Bob

unread,
Mar 24, 2003, 3:39:57 PM3/24/03
to
What's wrong with:

/* REXX */
Address TSO
'RENAME srcdsn targdsn'

You may need to add quotes for datasets that are not using your HLQ.

Bob Richards
VP, Enterprise Technologist
Technical Services
SunTrust Banks, Inc.
(404) 575-2798

-----Original Message-----
From: Steve Neeland [mailto:Steve....@AMERICAWEST.COM]
Sent: Monday, March 24, 2003 3:23 PM
To: TSO-...@VM.MARIST.EDU
Subject: Rename Dataset

Is there a way within Rexx code to rename a dataset or is there a better JCL
method?

*****************************************************************
The information transmitted is intended solely for the
individual or entity to which it is addressed and may
contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of
or taking action in reliance upon this information by
persons or entities other than the intended recipient
is prohibited. If you have received this email in error
please contact the sender and delete the material
from any computer.
****************************************************************

Imbriale, Donald , Exchange

unread,
Mar 24, 2003, 3:41:42 PM3/24/03
to
How about the TSO RENAME command?

Don Imbriale
dimb...@bear.com <mailto:dimb...@bear.com>


-----Original Message-----
From: Steve Neeland [SMTP:Steve....@AMERICAWEST.COM]
Sent: Monday, March 24, 2003 15:23
To: TSO-...@VM.MARIST.EDU
Subject: Rename Dataset

Is there a way within Rexx code to rename a dataset or is there a better JCL
method?


****************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************

McGrath, Kevin

unread,
Mar 24, 2003, 3:53:14 PM3/24/03
to
In the TSO environment,
Address TSO "RENAME 'your.data.set' 'your.new.data set'".
If you don't have the rename command ("TSO Data Services"?? - my memory fails me...), try
Address TSO "ALTER 'your.data.set' NEWNAME('your.new.data set')"
One ALTER "gotcha" to watch out for - make sure the high-level nodes are in the same user-catalog, or ALTER will fail.

Kevin McGrath
SouthTrust


-----Original Message-----
From: Steve Neeland [mailto:Steve....@AMERICAWEST.COM]
Sent: Monday, March 24, 2003 2:23 PM
To: TSO-...@VM.MARIST.EDU
Subject: Rename Dataset


Is there a way within Rexx code to rename a dataset or is there a better JCL
method?

Steve

Steve Neeland

unread,
Mar 24, 2003, 4:10:34 PM3/24/03
to
Sometimes a person can overthink something. I'm guilty of this way to much!

Thanks!


-----Original Message-----
From: Richards.Bob [mailto:Bob.Ri...@SUNTRUST.COM]
Sent: Monday, March 24, 2003 1:38 PM
To: TSO-...@VM.MARIST.EDU
Subject: Re: Rename Dataset


What's wrong with:

/* REXX */
Address TSO
'RENAME srcdsn targdsn'

You may need to add quotes for datasets that are not using your HLQ.

Bob Richards
VP, Enterprise Technologist
Technical Services
SunTrust Banks, Inc.
(404) 575-2798

-----Original Message-----
From: Steve Neeland [mailto:Steve....@AMERICAWEST.COM]
Sent: Monday, March 24, 2003 3:23 PM
To: TSO-...@VM.MARIST.EDU
Subject: Rename Dataset

Is there a way within Rexx code to rename a dataset or is there a better JCL
method?

*****************************************************************


The information transmitted is intended solely for the
individual or entity to which it is addressed and may
contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of
or taking action in reliance upon this information by
persons or entities other than the intended recipient
is prohibited. If you have received this email in error
please contact the sender and delete the material
from any computer.
****************************************************************

----------------------------------------------------------------------

Steve Comstock

unread,
Mar 24, 2003, 4:22:09 PM3/24/03
to
Actually, rename won't work for VSAM files, you'll need to use ALTER.

<ad>
In our rexx classes

TSO REXX Programming
http://www.trainersfriend.com/a250descrpt.htm


and

TSO REXX Programming in z/OS
http://www.trainersfriend.com/a750descrpt.htm

we actually have a lab where the student constructs an exec that prompts for
the existing name and the new name and uses RENAME or ALTER depending on the
organization. (Of course, ALTER will work for both, but the point of the lab
is the logic and command practice.).

</ad>

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

Stephen E. Bacher

unread,
Mar 24, 2003, 4:54:42 PM3/24/03
to
>In the TSO environment,
>Address TSO "RENAME 'your.data.set' 'your.new.data set'".
>If you don't have the rename command ("TSO Data Services"?? - my memory fails me...), try

The RENAME command is part of basic TSO and should be there.
(LIST, COPY, MERGE and FORMAT are the ones you might not have.)

- seb

0 new messages