View previous topic :: View next topic
|
Author |
Message |
usharaniA
New User
Joined: 22 Jan 2008 Posts: 85 Location: India
|
|
|
|
I want to transfer a set of text files to the mainframe. I want to unload the PDS to a single flat file and want to transfer it to another machine. I could achieve this using IEBCOPY, but I couldn't achieve the reverse condition, meaning to convert the single PS again to a PDS.
Kindly suggest me any ideas to convert the flat file to the PDS again. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
One easy way to download all of the members from a pds is to use the ftp client that is probably a Windows app on your pc.
On the mainframe side, log on and position the ftp window to use the pds as a directory. Next, cd to a local directory where you want to place all of the pds members - it can be helpful if you name this flder the same as the mainframe pds.
Select all of the members that are to be transferred, select ascii trnsfer, and pull them to your pc.
All done. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The process you've described should work in theory (IEBCOPY PDS - single dataset - transfer - IEBCOPY back to a PDS).
Can you show us the code you used and what error(s) you're seeing? |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Maybe you can use XMIT command to get it in to a XMIT File and send it to the desired machine and then RECEIVE command will create the PDS right in the desired location.
You can give the XMIT command as a line command when you see the dataset in 3.4 panel.
After transferring file to the destination, use RECEIVE INDATASET command to create PDS again. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
IEBCOPY unloads a PDS into a flat file that must be transferred as binary -- transferring it as text will mess it up. If your transfer was not in binary, that would explain why you cannot reconstitute the PDS from the transfer file. |
|
Back to top |
|
|
|