Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Copying all the members of a PDS to a PS using Rexx
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 16, 2007 4:24 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Mon Jul 16, 2007 5:22 pm    Post subject: Re: Copying all the members of a PDS to a PS using Rexx
Reply with quote

Here's a brief list of similar topics:

http://ibmmainframes.com/viewtopic.php?t=21787
http://ibmmainframes.com/viewtopic.php?t=18620
http://ibmmainframes.com/viewtopic.php?t=10082
http://ibmmainframes.com/viewtopic.php?t=9831
http://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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us