MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IEBCOPY to copy PDS members with name pattern matching.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
ironponygrl
Beginner


Joined: 22 Mar 2013
Posts: 21
Topics: 7
Location: Fort Worth, TX

PostPosted: Mon Jan 19, 2015 2:07 pm    Post subject: IEBCOPY to copy PDS members with name pattern matching. Reply with quote

Can someone help me with the syntax of this? I need to copy all the members that start with prefix OS from one pds (that has a lot more than OS*) to a pds that will only have OS members. I cant seem to get it right, I’ve tried multiple ways.
Code:

******************************** Top of Data ***********************************
                                         IEBCOPY MESSAGES AND CONTROL STATEMENTS
                                                                               
                                                                               
IEB1135I IEBCOPY  FMID HDZ2210  SERVICE LEVEL UA70793  DATED 20130919 DFSMS 02.0
IEB1035I B034710B  COPY1    10:42:45 MON 19 JAN 2015 PARM=''                   
                                                                               
                                                                               
 COPY INDD=FILE1,OUTDD=FILE2                                                   
 SELECT MEMBER=((OS*,,R))                                                       
IEB105I PARAMETER INVALID                                                       
IEB118I CONTROL STATEMENT ERROR                                                 
IEB115I END OF FILE ON SYSIN                                                   
IEB151I JOB HAS TERMINATED WITH ERROR(S)                                       
IEB147I END OF JOB - 8 WAS HIGHEST SEVERITY CODE                               
 ******************************* Bottom of Data ********************************

This doesn’t work either:
Code:

******************************** Top of Data ***********************************
                                         IEBCOPY MESSAGES AND CONTROL STATEMENTS
                                                                               
                                                                               
IEB1135I IEBCOPY  FMID HDZ2210  SERVICE LEVEL UA70793  DATED 20130919 DFSMS 02.0
IEB1035I B034710B  COPY1    10:46:51 MON 19 JAN 2015 PARM=''                   
                                                                               
                                                                               
 COPYGROUP INDD=FILE1,OUTDD=FILE2                                               
 SELECT MEMBER=((OS*,,R))                                                       
IEB1136I REPLACE AT MEMBER LEVEL INVALID FOR COPYGROUP                         
IEB118I CONTROL STATEMENT ERROR                                                 
IEB115I END OF FILE ON SYSIN                                                   
IEB151I JOB HAS TERMINATED WITH ERROR(S)                                       
IEB147I END OF JOB - 8 WAS HIGHEST SEVERITY CODE                               
 ******************************* Bottom of Data ********************************


Or this:
Code:

******************************** Top of Data ***********************************
                                         IEBCOPY MESSAGES AND CONTROL STATEMENTS
                                                                               
                                                                               
IEB1135I IEBCOPY  FMID HDZ2210  SERVICE LEVEL UA70793  DATED 20130919 DFSMS 02.0
IEB1035I B034710B  COPY1    10:48:13 MON 19 JAN 2015 PARM=''                   
                                                                               
                                                                               
 COPYGROUP INDD=FILE1,OUTDD=FILE2                                               
 SELECT MEMBER=((OS*))                                                         
IEB110I INVALID REPLACE SPECIFIED                                               
IEB118I CONTROL STATEMENT ERROR                                                 
IEB115I END OF FILE ON SYSIN                                                   
IEB151I JOB HAS TERMINATED WITH ERROR(S)                                       
IEB147I END OF JOB - 8 WAS HIGHEST SEVERITY CODE                               
 ******************************* Bottom of Data ********************************
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jan 19, 2015 2:28 pm    Post subject: Reply with quote

ironponygrl,

Why can't you use the ISPF option 3.3 to copy members between pds and it allows you to select members?

Provide the FROM and TO pds names and when you get to selection of members then type
Code:
S OS*
and it would copy all the members that start with OS to the target library.
_________________
Kolusu
www.linkedin.com/in/kolusu


Last edited by kolusu on Mon Jan 19, 2015 3:46 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ironponygrl
Beginner


Joined: 22 Mar 2013
Posts: 21
Topics: 7
Location: Fort Worth, TX

PostPosted: Mon Jan 19, 2015 3:38 pm    Post subject: Reply with quote

Kolusu,

I did use 3.3 initially, but I wanted to be able to do it repetitively. i'm working up a script and i gotta go back to square one frequently.

But actually, the latest updates to IEBCOPY does allows some wildcarding. it's referenced in the following presentations:
http://www.newera.com/INFO/Come_and_Get_It.pdf check out page 37.
https://share.confex.com/share/120/webprogram/Handout/Session12980/SHARE_SF_12980%20IEBCOPY.pdf




I finally got an example to work.
Code:

//COPY1 EXEC PGM=IEBCOPY                             
//SYSPRINT DD SYSOUT=*                               
//FILE1 DD DISP=SHR,DSN=aaa.bbb.ccc.ddd     
//FILE2 DD DISP=SHR,DSN=eee.fff.ggg.hhh
//SYSIN DD *                                         
   COPYGROUP INDD=((FILE1,R),OUTDD=FILE2             
    SELECT MEMBER=OS*                                 
//*                                                   
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jan 19, 2015 3:48 pm    Post subject: Reply with quote

ironponygrl,

bonk Time to update my Utilities capabilities. Wildcard member specification is supported since V1R13 bonk

Either way thanks for the updated control cards.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ironponygrl
Beginner


Joined: 22 Mar 2013
Posts: 21
Topics: 7
Location: Fort Worth, TX

PostPosted: Mon Jan 19, 2015 3:53 pm    Post subject: Reply with quote

glad I could give for once instead of always taking Very Happy
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Tue Jan 20, 2015 9:49 am    Post subject: Reply with quote

Don't bonk yourself TOO hard kolusu; you're plate is pretty full. Smile
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group