Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need help in dfdss copy

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need help in dfdss copy
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 24, 2009 12:18 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 24, 2009 4:13 pm    Post subject:
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    Post subject:
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: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Tue Mar 24, 2009 4:58 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 24, 2009 5:01 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us