IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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

Senior Member


Joined: 15 Aug 2015
Posts: 1255
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: 14
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

Senior Member


Joined: 15 Aug 2015
Posts: 1255
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

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

www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.idau100/u1044.htm
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts exclude the 5 first lines for compare... TSO/ISPF 2
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
Search our Forums:

Back to Top