View previous topic :: View next topic
|
Author |
Message |
navaneetha
New User
Joined: 21 Jun 2007 Posts: 1 Location: Hyderabad
|
|
|
|
Hi,
Can anyone provide a sample code to copy all the records of all the members of a Partitioned Dataset to a Physical Sequential dataset.
Regards,
Navaneetha R. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
An easy way is using IEBPTPCH which is detailed in the utilities manual. You do not even have to know the names of the members that need to be copied, although the members will be copied in the order change, so that the latest changed members will be at the end of the output.
It is something I have used a lot, but unfortunately where I am now the import of your own libraries is frowned upon, so I don't have the code to hand. You will need to tidy the output a little, but that should be easy enough within the REXX code.
Or, you could use LISTDS to get the list of members in the PDS and then invoke IEBGENER to do the copies of each member. This way the members will be copied in alphabetical order. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|