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

Convert the PDS to PS, transfer, then back to PDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Thu Jul 02, 2009 11:08 am
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 02, 2009 11:14 am
Reply with quote

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

Global Moderator


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

PostPosted: Thu Jul 02, 2009 11:21 am
Reply with quote

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

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Jul 02, 2009 1:37 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 02, 2009 5:03 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top