IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copying all the members of a PDS to a PS using Rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
navaneetha

New User


Joined: 21 Jun 2007
Posts: 1
Location: Hyderabad

PostPosted: Mon Jul 16, 2007 3:39 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jul 16, 2007 4:24 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Jul 16, 2007 5:22 pm
Reply with quote

Here's a brief list of similar topics:

ibmmainframes.com/viewtopic.php?t=21787
ibmmainframes.com/viewtopic.php?t=18620
ibmmainframes.com/viewtopic.php?t=10082
ibmmainframes.com/viewtopic.php?t=9831
ibmmainframes.com/viewtopic.php?t=20083
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top