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

Is there any better way to download a PDS


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

New User


Joined: 21 Aug 2008
Posts: 8
Location: china

PostPosted: Fri Dec 05, 2008 8:19 am
Reply with quote

hi .everyone.
i have coded a lot cobol Prog in a pds:' USER.COBOL.SRC(*)'
when i want to backup a copy in my PC.. i have to select all the member to download ..
is there any better way to download a PDS.
can i use some JCL utility to convert a PDS to a SDS ,then it can be download easily..(and the jcl to convert SDS to PDS)
thanks..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Dec 05, 2008 8:41 am
Reply with quote

You could FTP the PDS to a directory on your PC using MGET.
You could use XMITIP or similar tool to send the PDS as a binary file to your PC but the members won't be usable.
You could use IEBCOPY to unload the PDS to a sequential file and transfer that to your PC, but again the members won't be usable.
Back to top
View user's profile Send private message
salltm

New User


Joined: 21 Aug 2008
Posts: 8
Location: china

PostPosted: Fri Dec 05, 2008 9:04 am
Reply with quote

When i use the IEBCOPY ,is there some way to recover the sequential file (which i used to download ) to PDS..

thank your for your reply
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: Fri Dec 05, 2008 9:22 am
Reply with quote

Hello,

If you intend to move the code back and forth between platforms, i would recommend you do as suggested and download the entire pds to some directory on your pc/server.

This need not be the tedious task you mention. It can be done with a single command or one click of your desktop ftp product.

To use the iebcopy file, you would need to transfer the entire file back to the mainframe and restore from there.

I routinely download entire pds's and am able to selectively copy back to the mainframe or anywhere else with very little effort.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Dec 05, 2008 5:38 pm
Reply with quote

AFAIK, there is no PC tool to recreate a PDS from an IEBCOPY unloaded sequential file. This file can be reloaded into a PDS using IEBCOPY on a mainframe, but I think you're out of luck if you want the members available on a PC.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Dec 05, 2008 5:46 pm
Reply with quote

Quote:
AFAIK, there is no PC tool to recreate a PDS from an IEBCOPY unloaded sequential file.


Yep, Even i think the same but

- You can code a REXX exec to to read the unloaded sequential file and write it into different PDS members. Make sure you have some delimiter in your unloaded sequential file to denote the end of data for a member.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Dec 05, 2008 6:05 pm
Reply with quote

IEBPTPCH produces a file that can be downloaded as a .txt file, allowing you to upload only sections if you want to, but don't forget to get rid of the CC byte in cc1
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Dec 05, 2008 6:13 pm
Reply with quote

Hi salltm !

What is the real need of doing this. I assume, you leaving a company and
you start a new job at an other company. That's allways my intension, when i'm doing that. Fastest way is to use ADRDSSU utillity to dump all
my user-libs to a magnetic tape or cassette and take that with me to the next company and restore it there.

Precondition: Having access to operating.

Nice Weekend !
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Dec 05, 2008 8:24 pm
Reply with quote

Use PKZIP to zip the whole PDS into a single .zip archive file.
Back to top
View user's profile Send private message
salltm

New User


Joined: 21 Aug 2008
Posts: 8
Location: china

PostPosted: Sat Dec 06, 2008 8:50 am
Reply with quote

PKZIP ?
what is this .. JCL utility ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Sat Dec 06, 2008 8:54 am
Reply with quote

PKZIP is a program that must be paid for on the mainframe; it allows creation on the mainframe of ZIP archive files that can be moved to a PC and then the files in the archive can be extracted.
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: Sat Dec 06, 2008 9:02 am
Reply with quote

Hello,

If you ZIP the entire pds on the mainframe (rather than the individual members as separate files), you will probably not be able to use the file once unzipped on the windows system.

Creating the files of the individual members on the mainframe so they can be zipped is just a waste of time.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sat Dec 06, 2008 3:02 pm
Reply with quote

Hi,

I usually use the TRANSMIT commnad in batch to UNLOAD the PDS to a sequential file, then IND$FILE GET to send it to my PC and burn it to a CD.

When required back onto the mainframe, I use IND$FILE PUT to a sequential file and then use the RECEIVE command to restore the partitioned data set to its original format.


Gerry
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 Unable to download the JDBC driver to... Java & MQSeries 1
No new posts Need to download ETT details from TWS... IBM Tools 4
No new posts How to download JES2 JOB LOG? JCL & VSAM 9
No new posts IPSwitch download problem All Other Mainframe Topics 2
No new posts Download a huge list of elements from... CA Products 5
Search our Forums:

Back to Top