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

Copy Members for One PDS to another


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

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Jun 09, 2005 8:10 pm
Reply with quote

Hi,

Anyone have JCL to copy member from one PDS to another.

Eg: I have one PDS say A, in which 200 members are there, I want to copy 150 Members in another PDS say B. Can we do in through Job.

Thanks & regards
Rupesh.Kothari
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 09, 2005 8:27 pm
Reply with quote

Yes, you can use IEBCOPY utility to do this.
This is the link to IBM library server:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dgt1u104/3.6?DT=19990113105507
and this is the sample of jcl:
Code:
//STEP010I EXEC PGM=IEBCOPY                     
//VAMBYPAS DD DUMMY                           
//SYSPRINT DD SYSOUT=*                       
//INP0     DD DISP=SHR,DSN=mylib.input     
//OUT0     DD DISP=SHR,DSN=mylib.output
//SYSIN    DD *                               
 COPY OUTDD=OUT0,INDD=((INP0,R))               
 SELECT MEMBER=xxxxx                               

The parm ",R" allow you to replace an existing member.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri Jun 10, 2005 7:35 pm
Reply with quote

Hi,

Thanks MGIndaco.


Rupesh.Kothari
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Dec 19, 2007 3:23 pm
Reply with quote

Quote:
what is the need for the select member statement at the need?


Because the O/P said he wanted to copy ONLY some members...

without the "SELECT MEMBER..." IEBCOPY will copy the whole PDS
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Sat Mar 29, 2008 7:47 pm
Reply with quote

Hi,

I tried to copy the selected members from one PDS to other using below given jcl

//STEP010I EXEC PGM=IEBCOPY
//VAMBYPAS DD DUMMY
//SYSPRINT DD SYSOUT=*
//INP0 DD DISP=SHR,DSN=mylib.input
//OUT0 DD DISP=SHR,DSN=mylib.output
//SYSIN DD *
COPY OUTDD=OUT0,INDD=((INP0,R))
SELECT MEMBER=xxxxx



However after keying JJ , its saying keyword OUTDD not recognized and due to this not able to submit the JCL,

Kindly help me regarding this ??
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Mar 29, 2008 7:55 pm
Reply with quote

Hello,

Code:
//STEP010I EXEC PGM=IEBCOPY
//VAMBYPAS DD DUMMY
//SYSPRINT DD SYSOUT=*
//INP0 DD DISP=SHR,DSN=mylib.input
//OUT0 DD DISP=SHR,DSN=mylib.output
//SYSIN DD *
COPY OUTDD=OUT0,INDD=((INP0,R))
SELECT MEMBER=xxxxx


Your COPY and SELECT statements appear to begin in position 1. They should not. . .
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Sat Mar 29, 2008 9:39 pm
Reply with quote

I shifted them in 3rd column , however still the same severe error is getting displayed ...
Back to top
View user's profile Send private message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Sat Mar 29, 2008 9:51 pm
Reply with quote

After JJ its saying PDFFASt OUTDD is not recognized....
should i submit the job ignoring this msg.???
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Mar 29, 2008 10:03 pm
Reply with quote

it looks like You are not using IBM IEBCOPY, but rather the PDSFAST replacement

look at the PDSFAST docs or ask Your peers
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Mar 29, 2008 10:22 pm
Reply with quote

Hello,

Pleased post the entire set of jcl and control statements. Also post the complete diagnostic info from the execution. Do not selectively cut/paste. . . If you need to, change the dsns for posting - we don't need to see the "real" dataset names..

Why are there 2 sets of parentheses "((. . .))"? One set is all that is needed.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Mar 31, 2008 7:13 pm
Reply with quote

dick scherrer wrote:
Why are there 2 sets of parentheses "((. . .))"? One set is all that is needed.
With only one set of parens, IEBCOPY assumes "R" is a second input DDname. Both sets of parens are required to specify the replace option.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 31, 2008 7:46 pm
Reply with quote

Thanks Bill.

I seem to have grabbed the syntax for copying the entire pds replacing duplicates rather than when only selected members are to be processed icon_redface.gif

'Preciate the correction.

d
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 Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top