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 using jcl

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

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Sat Jan 17, 2009 2:41 am    Post subject: copy members using jcl
Reply with quote

Hi,

I need to copy members which are in my input dataset.

My input dataset contains the members list which I need to copy:

a12345.a.b.c(xxxx)
a12345.d.e.f(yyyy)
a12345.g.h.i(zzzzz)
.
.
.
I need to copy them to
a54321.a.b.c(xxxx)
a54321.d.e.f(yyyy)
a54321.g.h.i(zzzzz)

PDS where I need to copy may not exist. If it is not existing then we need to allocate it and then copy the member.

How can we do this using JCL?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Sat Jan 17, 2009 2:47 am    Post subject: Reply to: copy members using jcl
Reply with quote

You need:

1. A step to determine if the target PDS exists (see examples of the IDCAMS LISTCAT command for this).

2. If the target PDS doesn't exist, you'll have to allocate and catalog it.

3. You'll need to read the list of member names to be copied and generate a list of IEBCOPY SELECT statement as needed. A DFSORT/SYNCSORT/REXX/CLIST/Easytrieve/SAS step ought to work.

4. Last, you'll need IEBCOPY to copy the list of selected members from the source PDS to the target PDS.
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 Jan 17, 2009 3:08 am    Post subject:
Reply with quote

Hello,

If this is a one-time requirement, you might consider tso/ispf 3.3 Move/Copy Utility.

You can copy part or all of your pds to another, creating it "on the fly" if it does not exist.
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Sat Jan 17, 2009 3:16 am    Post subject: Reply to: copy members using jcl
Reply with quote

Hi Dick,

Its not one time requirement. Currently we are doing using 3.3 Some times we will get bulk members (in 100s) in the dataset to copy. That is the reason we are looking for the jcl.
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 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
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


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