IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

IEBCOPY COPYGROUP and EXCLUDE


 
IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: :: View next topic  
Author Message
ecsk

New User


Joined: 28 Jun 2010
Posts: 8
Location: Australia

PostPosted: Thu Jun 04, 2020 10:23 am
Reply with quote

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 Use [URL] BBCode for Links

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
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 350
Location: Bamberg, Germany

PostPosted: Thu Jun 04, 2020 10:27 am
Reply with quote

Do not write SELECT and EXCLUDE in the same line, wrap them. That should help.
Back to top
View user's profile Send private message
ecsk

New User


Joined: 28 Jun 2010
Posts: 8
Location: Australia

PostPosted: Thu Jun 04, 2020 11:13 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 350
Location: Bamberg, Germany

PostPosted: Thu Jun 04, 2020 11:28 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10695
Location: italy

PostPosted: Thu Jun 04, 2020 11:30 am
Reply with quote

Use [URL] BBCode for Links
Back to top
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 350
Location: Bamberg, Germany

PostPosted: Thu Jun 04, 2020 12:18 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10695
Location: italy

PostPosted: Thu Jun 04, 2020 1:34 pm
Reply with quote

I know that , it was a hint to the TS to look at the manuals
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> IBM Tools
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts IEBCOPY - Not replace a existing PDS ... JCL & VSAM 15
No new posts IEBCOPY - wild-card for member copies??? JCL & VSAM 2
No new posts Differences between copying members b... TSO/ISPF 8
No new posts Exclude selected* members while File ... Compuware & Other Tools 0
No new posts SORT to search a PDS and exclude results DFSORT/ICETOOL 8

Back to Top