How to Copy selected records from Selected PDS members



Compuware's data management products: File-AID for IMS, File-AID/MVS, File-AID for DB2 and DBA-XPERT for DB2

How to Copy selected records from Selected PDS members

Postby mpjacobs » Fri Jun 29, 2012 10:28 am

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
mpjacobs
 
Posts: 3
Joined: Fri Nov 05, 2010 6:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to Copy selected records from Selected PDS members

Postby NicC » Fri Jun 29, 2012 12:22 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to Copy selected records from Selected PDS members

Postby mpjacobs » Mon Jul 02, 2012 6:28 am

oops, sorry, thanks ; didn't see the FileAid section . . .
mpjacobs
 
Posts: 3
Joined: Fri Nov 05, 2010 6:14 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to Copy selected records from Selected PDS members

Postby mpjacobs » Tue Jul 03, 2012 8:38 am

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
mpjacobs
 
Posts: 3
Joined: Fri Nov 05, 2010 6:14 am
Has thanked: 0 time
Been thanked: 0 time


Return to File-AID

 


  • Related topics
    Replies
    Views
    Last post