I'm having following requirement
1.Get count of all PDS members.
2.if members are 1000 then create a two new PDS and move 900 members in one and 100 in others i.e i can't move more than 900 members in one PDS.
3.i don't know how many members are there in 1st PDS.
4.According to count i've to create new PDS dynamically and move the members also.
Please tell me what approch should i follow. whether to write a COBOL or it can be done with the JCL.