Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us