View previous topic :: View next topic
|
Author |
Message |
chockalingam_rsp
New User
Joined: 13 Aug 2009 Posts: 43 Location: chennai
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Can you please provide me with my standard billing rate for writing it? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
chockalingam_rsp
New User
Joined: 13 Aug 2009 Posts: 43 Location: chennai
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
ezio vin
New User
Joined: 16 Aug 2012 Posts: 44 Location: india
|
|
|
|
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 |
|
|
|