but i need a rexx program for that.
How was that requirement determined?
What can justify writing an application to do what is already available on your system?
Keep in mind that if you write something in mainframe rexx, you will set the code to "push" the data from the mainframe to the pc. One obstacle to sending
the data to your pc is that the pc would require an "ftp server" (rather than just a client) and most organizations do not permit desktop systems to run an ftp server. Many unix servers run an ftp service, so this may not be an issue.