Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
IEBCOPY COPYGROUP and EXCLUDE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: IEBCOPY COPYGROUP and EXCLUDE
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 https://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

Active User


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

PostPosted: Thu Jun 04, 2020 10:27 am    Post subject:
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    Post subject:
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: 292
Location: Bamberg, Germany

PostPosted: Thu Jun 04, 2020 11:28 am    Post subject:
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: 10696
Location: italy

PostPosted: Thu Jun 04, 2020 11:30 am    Post subject: Reply to: IEBCOPY COPYGROUP and EXCLUDE
Reply with quote

https://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

Active User


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

PostPosted: Thu Jun 04, 2020 12:18 pm    Post subject: Re: Reply to: IEBCOPY COPYGROUP and EXCLUDE
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: 10696
Location: italy

PostPosted: Thu Jun 04, 2020 1:34 pm    Post subject: Reply to: IEBCOPY COPYGROUP and EXCLUDE
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEBCOPY - Not replace a existing PDS ... Aks1988 JCL & VSAM 15 Mon Mar 09, 2020 7:06 pm
No new posts IEBCOPY - wild-card for member copies??? JPVRoff JCL & VSAM 2 Fri Nov 15, 2019 3:58 am
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts Exclude selected* members while File ... samagar Compuware & Other Tools 0 Thu Jul 10, 2014 8:35 pm
No new posts SORT to search a PDS and exclude results spoorni DFSORT/ICETOOL 8 Thu Jan 30, 2014 11:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us