View previous topic :: View next topic |
Author |
Message |
ag Beginner
Joined: 04 Nov 2015 Posts: 6 Topics: 2
|
Posted: Mon Nov 23, 2015 1:45 pm Post subject: Rename USS file |
|
|
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 |
|
 |
William Collins Supermod
Joined: 03 Jun 2012 Posts: 437 Topics: 0
|
Posted: Mon Nov 23, 2015 7:50 pm Post subject: |
|
|
What do you use to do the copy? |
|
Back to top |
|
 |
ag Beginner
Joined: 04 Nov 2015 Posts: 6 Topics: 2
|
Posted: Wed Nov 25, 2015 10:03 am Post subject: |
|
|
Technically it is not a copy.... I run FTP job to send file from MVS site to USS. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Nov 25, 2015 10:10 am Post subject: |
|
|
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 |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
|
Back to top |
|
 |
ag Beginner
Joined: 04 Nov 2015 Posts: 6 Topics: 2
|
Posted: Sat Dec 19, 2015 10:50 pm Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sun Dec 20, 2015 6:28 am Post subject: |
|
|
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 |
|
 |
|
|