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 mutliple members from 1 pds to another PDS using

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy mutliple members from 1 pds to another PDS using
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: 1738
Location: Bloomington, IL

PostPosted: Thu Oct 11, 2012 4:24 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Thu Oct 11, 2012 4:33 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Thu Oct 11, 2012 4:44 pm    Post subject: Reply to: Copy mutliple members from 1 pds to another PDS u
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: 1738
Location: Bloomington, IL

PostPosted: Thu Oct 11, 2012 6:51 pm    Post subject: Re: Reply to: Copy mutliple members from 1 pds to another P
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    Post subject:
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    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 syncsort: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


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