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

Copy mutliple members from 1 pds to another PDS using


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

New User


Joined: 13 Aug 2009
Posts: 43
Location: chennai

PostPosted: Thu Oct 11, 2012 4:12 pm
Reply with quote

Hi ,

I need to copy particular 100 members (out of 2000) from 1 PDS to another PDS.

I have the 100 member names in a PS file.

How can i do this with the help of IEBCOPY. Can you please provide me with the JCL.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Oct 11, 2012 4:24 pm
Reply with quote

Can you please provide me with my standard billing rate for writing it?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Oct 11, 2012 4:33 pm
Reply with quote

The JCL bit is very easy, no need to pay anyone for that :-)

However, it won't get your job done, as the "tricky" part is the control cards...

Have you looked at a manual at all about how to copy named members from one place to another? Used google? Asked colleagues? What is the exact problem you are having in achieving this?
Back to top
View user's profile Send private message
chockalingam_rsp

New User


Joined: 13 Aug 2009
Posts: 43
Location: chennai

PostPosted: Thu Oct 11, 2012 4:40 pm
Reply with quote

i have used IEBCOPY and using the SELECT members parameter , i know that we can select members whichever we want. But putting a 100 members or more in the search string is a diffucult task.
So i wanted to put the member names in a seperate PS and then get this copy done....

I am not sure of how to link the PS file with the select members parameter..

Please help ...
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Oct 11, 2012 4:44 pm
Reply with quote

If you have your file with 100 members in it, all that is missing is the "formatting" required for IEBCOPY. Edit you file of members, apply the formatting, then copy it into the middle of the basic IEBCOPY cards.

If you are not skilled with the editor, become skilled. In the meantime, you could format with REXX, SORT, a Cobol program, whatever... you just need something to read the file, and make the member names look how they need to look.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Oct 11, 2012 6:51 pm
Reply with quote

Bill Woodger wrote:
In the meantime, you could format with REXX, SORT, a Cobol program, whatever... you just need something to read the file, and make the member names look how they need to look.

And with a little extra thought and effort, this could easily become a Tool, the sangréal of every software engineer.
Back to top
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Fri Oct 12, 2012 12:07 pm
Reply with quote

you can do this by basic c all command in your ps file

input name is not common just leave space before each member name or find easiest way to accomplish this
Code:
****** **********
000001 BSADD     
000002 BSADDT   
000003 BSALAEJ   
000004 BSBALT   
000005 BSBALTJ   
000006 BSCARE   
000007 BSCLMC   
000008 BSCLMCJ   
000009 BSCS00   
****** **********

output
after issuing C ALL 'BS' ' S M=BS'

Code:
****** **************
==CHG> S M=BSADD     
==CHG> S M=BSADDT   
==CHG> S M=BSALAEJ   
==CHG> S M=BSBALT   
==CHG> S M=BSBALTJ   
==CHG> S M=BSCARE   
==CHG> S M=BSCLMC   
==CHG> S M=BSCLMCJ   
==CHG> S M=BSCS00   
****** **************
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