View previous topic :: View next topic
|
Author |
Message |
ecsk
New User
Joined: 28 Jun 2010 Posts: 14 Location: Australia
|
|
|
|
i want to copy a pds to another but exclude members base on pattern
Code: |
//SYSIN DD *
COPYGROUP OUTDD=O2,INDD=I1
SELECT MEMBER=* EXCLUDE MEMBER=ABC$* |
In above code, I'd like to exclude any members name start with ABC$
but the job copies everything, does not return error, does not exclude the members in pattern.
I read this share.confex.com/share/120/webprogram/Handout/Session12980/SHARE_SF_12980%20IEBCOPY.pdf
from page 23 - 27, my understanding is that exclude member pattern should work.
Any expert can point out what's the error in my jcl ? |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1255 Location: Bamberg, Germany
|
|
|
|
Do not write SELECT and EXCLUDE in the same line, wrap them. That should help. |
|
Back to top |
|
|
ecsk
New User
Joined: 28 Jun 2010 Posts: 14 Location: Australia
|
|
|
|
Tried both, but it's the same. all members were copied.
Code: |
//SYSIN DD *
COPYGROUP OUTDD=O2,INDD=I1
SELECT MEMBER=*
EXCLUDE MEMBER=ABC$* |
Code: |
//SYSIN DD *
COPYGROUP OUTDD=O2,INDD=I1
SELECT MEMBER=(*)
EXCLUDE MEMBER=(ABC$*) |
|
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1255 Location: Bamberg, Germany
|
|
|
|
This works on my site as desired:
Code: |
//IEBCPGRP EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT3 DD UNIT=SYSALLDA,SPACE=(CYL,(0,10))
//SYSUT4 DD UNIT=SYSALLDA,SPACE=(CYL,(0,10))
//IN DD DISP=SHR,DSN=&SYSUID..FROM.CNTL
//OUT DD DISP=SHR,DSN=&SYSUID..TO.CNTL
//SYSIN DD *
NAMI CP I=((IN,R)),O=OUT,L=YES
S M=(*)
E M=(DCOL*)
/* |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1255 Location: Bamberg, Germany
|
|
|
|
enrico-sorichetti wrote: |
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.idau100/u1044.htm |
I would assume practical samples are more appreciated. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
I know that , it was a hint to the TS to look at the manuals |
|
Back to top |
|
|
|