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
 

 

Copy Members for One PDS to another

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

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Thu Jun 09, 2005 8:10 pm    Post subject: Copy Members for One PDS to another
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    Post subject:
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: 464

PostPosted: Fri Jun 10, 2005 7:35 pm    Post subject: Re: Copy Members for One PDS to another
Reply with quote

Hi,

Thanks MGIndaco.


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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Dec 19, 2007 3:23 pm    Post subject: Reply to: Copy Members for One PDS to another
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    Post subject:
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

Site Director


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

PostPosted: Sat Mar 29, 2008 7:55 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Sat Mar 29, 2008 10:03 pm    Post subject: Reply to: Copy Members for One PDS to another
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

Site Director


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

PostPosted: Sat Mar 29, 2008 10:22 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Mar 31, 2008 7:46 pm    Post subject: Reply to: Copy Members for One PDS to another
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    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 5 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 Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 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


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