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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Convert the PDS to PS, transfer, then back to PDS
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

Site Director


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

PostPosted: Thu Jul 02, 2009 11:14 am    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Jul 02, 2009 11:21 am    Post subject: Reply to: Convert the PDS to PS, transfer, then back to PDS
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: 686
Location: Earth

PostPosted: Thu Jul 02, 2009 1:37 pm    Post subject:
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: 7989
Location: Bellevue, IA

PostPosted: Thu Jul 02, 2009 5:03 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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