View previous topic :: View next topic
|
Author |
Message |
raki_new
New User
Joined: 10 Feb 2009 Posts: 26 Location: chennai
|
|
|
|
In dfdss copy how to copy a set of PDS to another set of PDS with names
manipulated.
For ex:
CHGMAN.XXX.AAA.SRA
CHGMAN.XXX.AAA.PR1
CHGMAN.XXX.AAA.JC1
to
USERID.USER.XXX.AAA.SRA
USERID.USER.XXX.AAA.PR1
USERID.USER.XXX.AAA.JC1
regards |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Clicl HERE to read the manual and find out for yourself. |
|
Back to top |
|
|
raki_new
New User
Joined: 10 Feb 2009 Posts: 26 Location: chennai
|
|
|
|
i use the following code
Code: |
//COPY EXEC PGM=ADRDSSU
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COPY DATASET(INCLUDE(CHGMAN.XXX.AAA..*)) -
REPLACEUNCONDITIONAL -
RENAMEU(USERID.USER.*)
/* |
it shoots error in renameu part..
Please help |
|
Back to top |
|
|
raki_new
New User
Joined: 10 Feb 2009 Posts: 26 Location: chennai
|
|
|
|
sorry
Quote: |
COPY DATASET(INCLUDE(CHGMAN.XXX.AAA..*)) - |
is wrong
the right one is
Code: |
COPY DATASET(INCLUDE(CHGMAN.XXX.AAA.*)) - |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Try following the correct syntax for RENAMEU |
|
Back to top |
|
|
raki_new
New User
Joined: 10 Feb 2009 Posts: 26 Location: chennai
|
|
|
|
Can we do this ??
using dfdss copy
if so how ...
Here
USERID.USER.XXX.AAA.SRA
the highlighted part is the new HLQ ...
we can replace by Userid alone.. tat is fine...
wat about we giving a pattern . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Check the manual ... RENAMEU requires TWO parameters, not just the one you gave it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Nope, you have to replace like for like, you can not substitute one level of the dsn for two or more levels in the newname using a pattern.
You can however do it for individual dataset names, which means coding every input dataset and every newname for the output dataset.
bummer, eh |
|
Back to top |
|
|
|