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
 
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 Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 1 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
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 Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm

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