COPY PDS MEMBERS START WITH MEM* TO OTHER PDS



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

COPY PDS MEMBERS START WITH MEM* TO OTHER PDS

Postby MuniManojKumark » Fri Apr 15, 2011 9:40 am

Hi,

In a pds only two types of members are there ,one type is starts with INV and another is a starts with MEM , i need to copy all members start with INV to another pds and MEM members to another pds, tried with IEBCOPY UTILITY , but i didnot find like above case any where ,


Manoj
MuniManojKumark
 
Posts: 1
Joined: Fri Apr 15, 2011 9:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: COPY PDS MEMBERS START WITH MEM* TO OTHER PDS

Postby enrico-sorichetti » Fri Apr 15, 2011 11:59 am

is this a procedural/repetitive task, or a just do it once and forget about it ?

if its a do it once the fastest would be to use ISPF option 3.3 ( utility/copy )
when the member list is displayed just enter s MEM* and automagically all the members
starting with MEM will be selected
the same with the INV

if You are bound to use JCL, You will have to run a multi step job
step1 get the member list
step2 use your sort product to build the proper IEBCOPY control statements
step3 IEBCOPY INV*
step4 IEBCOPY MEM*

it could be done also with a single IEBCOPY step with two outputs
but it is easier to debug errors with two IEBCOPY steps
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post