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: 8657
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: 8657
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: 8280
Location: Dubuque, Iowa, 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: 8657
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 set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts Image copy after Online reorganization. lind sh IMS DB/DC 0 Tue Jan 30, 2018 9:58 pm
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm

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