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 USS file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ag
Beginner


Joined: 04 Nov 2015
Posts: 6
Topics: 2

PostPosted: Mon Nov 23, 2015 1:45 pm    Post subject: Rename USS file Reply with quote

Hi,
I wonder if anyone can help me with setting up a job run on MVS side to rename USS file. I can copy the files but am not sure how to rename them.
Thnaks,
Adam.
Back to top
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon Nov 23, 2015 7:50 pm    Post subject: Reply with quote

What do you use to do the copy?
Back to top
View user's profile Send private message
ag
Beginner


Joined: 04 Nov 2015
Posts: 6
Topics: 2

PostPosted: Wed Nov 25, 2015 10:03 am    Post subject: Reply with quote

Technically it is not a copy.... I run FTP job to send file from MVS site to USS.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Nov 25, 2015 10:10 am    Post subject: Reply with quote

ag wrote:
Technically it is not a copy.... I run FTP job to send file from MVS site to USS.


Hmm if you are ftping the dataset why not PUT the ftp dataset directly to your renamed file name? or am I missing something?

You can use actually use MV to rename the uss file but that does not work in batch.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Wed Nov 25, 2015 10:10 am    Post subject: Reply with quote

Does this help?
https://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxa400/fcop.htm
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
ag
Beginner


Joined: 04 Nov 2015
Posts: 6
Topics: 2

PostPosted: Sat Dec 19, 2015 10:50 pm    Post subject: Reply with quote

Sorry been away for a while. The copy is a side issue, yes I can run job and give it a proper name but that will overwrite the file. My main issue is that I have production and disaster recovery files and right now after we recover the system I need to logon onto the system and manually rename the files. I would prefer to setup a job and have ops to run it.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sun Dec 20, 2015 6:28 am    Post subject: Reply with quote

I do not understand your requirement at all but...if you are wanting to have DR files and PROD files on the same machine with the same names then, because it is a Unix machine, you can have them in separate, but identical, directory structures but with different root directory names of, for example, DR and PROD respectively. When you come to want to use the DR files instead of the PROD files you simply rename the root PROD folder to something else, e.g. DORP, and rename the DR root folder to PROD. Of course, you may be meaninfg something completely different!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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 -> Utilities 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