View previous topic :: View next topic |
Author |
Message |
ironponygrl Beginner

Joined: 22 Mar 2013 Posts: 21 Topics: 7 Location: Fort Worth, TX
|
Posted: Mon Jan 19, 2015 2:07 pm Post subject: IEBCOPY to copy PDS members with name pattern matching. |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Mon Jan 19, 2015 2:28 pm Post subject: |
|
|
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 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 |
|
 |
ironponygrl Beginner

Joined: 22 Mar 2013 Posts: 21 Topics: 7 Location: Fort Worth, TX
|
Posted: Mon Jan 19, 2015 3:38 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Mon Jan 19, 2015 3:48 pm Post subject: |
|
|
ironponygrl,
Time to update my Utilities capabilities. Wildcard member specification is supported since V1R13
Either way thanks for the updated control cards. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ironponygrl Beginner

Joined: 22 Mar 2013 Posts: 21 Topics: 7 Location: Fort Worth, TX
|
Posted: Mon Jan 19, 2015 3:53 pm Post subject: |
|
|
glad I could give for once instead of always taking  |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Tue Jan 20, 2015 9:49 am Post subject: |
|
|
Don't bonk yourself TOO hard kolusu; you're plate is pretty full.  _________________ ....Terry |
|
Back to top |
|
 |
|
|