View previous topic :: View next topic
|
Author |
Message |
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Anyone have JCL to copy member from one PDS to another.
Eg: I have one PDS say A, in which 200 members are there, I want to copy 150 Members in another PDS say B. Can we do in through Job.
Thanks & regards
Rupesh.Kothari |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Thanks MGIndaco.
Rupesh.Kothari |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
what is the need for the select member statement at the need? |
Because the O/P said he wanted to copy ONLY some members...
without the "SELECT MEMBER..." IEBCOPY will copy the whole PDS |
|
Back to top |
|
|
Anurag Singh
New User
Joined: 20 Jan 2008 Posts: 25 Location: India
|
|
|
|
Hi,
I tried to copy the selected members from one PDS to other using below given jcl
//STEP010I EXEC PGM=IEBCOPY
//VAMBYPAS DD DUMMY
//SYSPRINT DD SYSOUT=*
//INP0 DD DISP=SHR,DSN=mylib.input
//OUT0 DD DISP=SHR,DSN=mylib.output
//SYSIN DD *
COPY OUTDD=OUT0,INDD=((INP0,R))
SELECT MEMBER=xxxxx
However after keying JJ , its saying keyword OUTDD not recognized and due to this not able to submit the JCL,
Kindly help me regarding this ?? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Code: |
//STEP010I EXEC PGM=IEBCOPY
//VAMBYPAS DD DUMMY
//SYSPRINT DD SYSOUT=*
//INP0 DD DISP=SHR,DSN=mylib.input
//OUT0 DD DISP=SHR,DSN=mylib.output
//SYSIN DD *
COPY OUTDD=OUT0,INDD=((INP0,R))
SELECT MEMBER=xxxxx |
Your COPY and SELECT statements appear to begin in position 1. They should not. . . |
|
Back to top |
|
|
Anurag Singh
New User
Joined: 20 Jan 2008 Posts: 25 Location: India
|
|
|
|
I shifted them in 3rd column , however still the same severe error is getting displayed ... |
|
Back to top |
|
|
Anurag Singh
New User
Joined: 20 Jan 2008 Posts: 25 Location: India
|
|
|
|
After JJ its saying PDFFASt OUTDD is not recognized....
should i submit the job ignoring this msg.??? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
it looks like You are not using IBM IEBCOPY, but rather the PDSFAST replacement
look at the PDSFAST docs or ask Your peers |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Pleased post the entire set of jcl and control statements. Also post the complete diagnostic info from the execution. Do not selectively cut/paste. . . If you need to, change the dsns for posting - we don't need to see the "real" dataset names..
Why are there 2 sets of parentheses "((. . .))"? One set is all that is needed. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
dick scherrer wrote: |
Why are there 2 sets of parentheses "((. . .))"? One set is all that is needed. |
With only one set of parens, IEBCOPY assumes "R" is a second input DDname. Both sets of parens are required to specify the replace option. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thanks Bill.
I seem to have grabbed the syntax for copying the entire pds replacing duplicates rather than when only selected members are to be processed
'Preciate the correction.
d |
|
Back to top |
|
|
|