by 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