Page 1 of 1

How to Copy selected records from Selected PDS members

PostPosted: Fri Jun 29, 2012 10:28 am
by mpjacobs
Hi all

I need to convert from IBM FileManager to Compuware FileAid (or SORT , or something other than FileManager)

I have a IBM FileManager step with this code

//SYSIN DD *
$$FILEM DSC INPUT=INDD,
$$FILEM OUTPUT=OUTDD,
$$FILEM MEMBER=DT*,NLRECS=12

which copies the 1st 12 records from an input PDS, from only members DT*, to an output sequential file.

I tried this with FileAid

//SYSIN DD *
$$DD01 COPYALL IN=12,MEMBERS=DT

but it only processes the FIRST member (yes there are >1 where member name is DTsomething)


Any help/advice is appreciated

Thanks

MJ

Re: How to Copy selected records from Selected PDS members

PostPosted: Fri Jun 29, 2012 12:22 pm
by NicC
Moved as you are wanting File-Aid help and not JCL help. If you do not know the difference between JCL and utility control cards then I suggest you find out the difference.

Re: How to Copy selected records from Selected PDS members

PostPosted: Mon Jul 02, 2012 6:28 am
by mpjacobs
oops, sorry, thanks ; didn't see the FileAid section . . .

Re: How to Copy selected records from Selected PDS members

PostPosted: Tue Jul 03, 2012 8:38 am
by mpjacobs
solution found

FileAid = NO GO.

3-step soln :-
1- FileAid to Copy selected members
2 - IEBPTPCH (never really aniticpated seeing that again !) to print 1st 12 records of all members
3 - SORT - remove member header records from output created by IEBPTPCH

thx

MJ