IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help in dfdss copy


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raki_new

New User


Joined: 10 Feb 2009
Posts: 26
Location: chennai

PostPosted: Tue Mar 24, 2009 10:21 am
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 24, 2009 12:18 pm
Reply with quote

Clicl HERE to read the manual and find out for yourself.
Back to top
View user's profile Send private message
raki_new

New User


Joined: 10 Feb 2009
Posts: 26
Location: chennai

PostPosted: Tue Mar 24, 2009 3:43 pm
Reply with quote

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

New User


Joined: 10 Feb 2009
Posts: 26
Location: chennai

PostPosted: Tue Mar 24, 2009 3:45 pm
Reply with quote

sorry

Quote:
COPY DATASET(INCLUDE(CHGMAN.XXX.AAA..*)) -


is wrong

the right one is

Code:
COPY DATASET(INCLUDE(CHGMAN.XXX.AAA.*)) -
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 24, 2009 4:13 pm
Reply with quote

Try following the correct syntax for RENAMEU
Back to top
View user's profile Send private message
raki_new

New User


Joined: 10 Feb 2009
Posts: 26
Location: chennai

PostPosted: Tue Mar 24, 2009 4:34 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 24, 2009 4:58 pm
Reply with quote

Check the manual ... RENAMEU requires TWO parameters, not just the one you gave it.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 24, 2009 5:01 pm
Reply with quote

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 icon_neutral.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top