Posted: Fri Aug 22, 2008 12:24 pm Post subject: Dynamic Move of Elements within PDS
Hi,
I have a flat file with Element name and Type. I need to move the Element from a PDS to another PDS according to the element type dynamically during the execution of a JOB.
For Eg.
Contents of my File
Member1 COB
Member2 REST
Member3 JCL
So mem1 shud be copied from PDS.COBOL.MAIN to PDS.COBOL.NEXT
So mem2 shud be copied from PDS.RESTART.MAIN to PDS.RESTART.NEXT
So mem3 shud be copied from PDS.JCL.MAIN to PDS.JCL.NEXT
My logic is to create Dynamic PARMS and using those PARMS and AFOLIBR utility I can copy members.
Is there any better way to do it? Pls give an Idea.
Cheers _________________ Arvind
"You can make a difference with your smile. Have that with you always"
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Aug 22, 2008 1:27 pm Post subject:
arvibala,
How does the control cards fror AFOLIBR look like ? we can use DFSORT to create the control cards based on the type _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum