IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

How to download all members from pds at 1 time?

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
View previous topic :: View next topic  
Author Message
kwhong



Joined: 09 Jun 2006
Posts: 3

Posted: Sat Jun 10, 2006 9:30 am    Post subject: How to download all members from pds at 1 time?  

Hi, May I know how to download all members from pds at 1 time?

Thanks
Back to top  
superk



Joined: 26 Apr 2004
Posts: 3381
Location: Charlotte,NC USA

Posted: Sun Jun 11, 2006 6:29 am    Post subject: Re: How to download all members from pds at 1 time?  

Download how? And to where - another server?
Back to top  
kwhong



Joined: 09 Jun 2006
Posts: 3

Posted: Sun Jun 11, 2006 1:36 pm    Post subject: Re: How to download all members from pds at 1 time?  

transfer file from host to PC.
Currently what I am doing is transfer file 1 by 1 from the host to PC.
If the PDS has 50 members. I hv to do it 1 by 1 for 50 times..
I am looking for a method which can transfer all from host to PC at 1 time..
any idea. thanks..
Back to top  
superk



Joined: 26 Apr 2004
Posts: 3381
Location: Charlotte,NC USA

Posted: Sun Jun 11, 2006 6:08 pm    Post subject: Re: How to download all members from pds at 1 time?  

If you're using FTP, and you are "pushing" files from the mainframe host to the PC server, a simple "mput *" would work, as long as the PDS is the working directory.

If you're using FTP, and you are "pulling" files from the mainframe host to the PC, a simple "mget *" would work, as long as the PDS is the working directory.

If you're using some other method, then you most likely need to convert the PDS into a single sequential dataset. You could ZIP the entire PDS into a single .zip archive file. You could use IEBPTPCH or TSO PRINTDS to "punch" the PDS into a single sequential dataset. If the data is not intended to be used on the PC, the TSO XMIT command will convert the PDS into a single dataset that can be re-converted into a PDS on another mainframe. The same process works for and IEBCOPY unload.
Back to top  
prasadvrk



Joined: 31 May 2006
Posts: 208
Location: Noida

Posted: Mon Jun 12, 2006 11:48 am    Post subject:  

Yes mget and mput should work for you if you are using ftp. You may have to ftp from command prompt and supply the server name, user id , password.
Back to top  
kwhong



Joined: 09 Jun 2006
Posts: 3

Posted: Thu Jun 15, 2006 6:36 am    Post subject: Re: How to download all members from pds at 1 time?  

Sorry... I think I not using FTP.
Or I not understand the command u given.
Hv a look on print screen.
my Host download file looks different ???
Back to top  
prasadvrk



Joined: 31 May 2006
Posts: 208
Location: Noida

Posted: Thu Jun 15, 2006 12:36 pm    Post subject:  

As I answered earlier, you have to open a command prompt window and key in FTP, it will prompt you for the servers name folllowed by user id and password. supply those (if you don't know seek your tech support team) and key in mget 'your pds' it will get all the members in your PDS.
Back to top  
mfibm



Joined: 12 Sep 2006
Posts: 13

Posted: Fri Sep 15, 2006 4:59 pm    Post subject:  

ya prasad is right.........

mget pdsname(*) will work for u in dos...

Likki
Back to top  
graswant



Joined: 29 Apr 2006
Posts: 81
Location: Gurgaon

Posted: Wed Sep 20, 2006 12:49 am    Post subject: Re: How to download all members from pds at 1 time?  

Hi Kwhong..

U are using IND$FILE GET which will let you get the member 1 at a time... As told by Prasad... Go to Dos prompt and then type FTP with the Server name followed by User Id and password...then after loging in just type "MGET PDSNAME(*)" It will let you download all the members at one go...you don't need to do it again and again 50 times...

CORRECT ME IF I AM WRONG....

Thanks...
Back to top  
msjia



Joined: 21 Aug 2004
Posts: 1

Posted: Fri Sep 22, 2006 3:22 pm    Post subject:  

kwhong

You may merge all those pds member into 1 ps file by using SAS, and download this ps file at a time. And it's easy to split such a file on PC platform.

You may refer to following JCL on how to merge pds member to ps file:

//*--------------------------------------------------------------*
//STEP020 EXEC SAS,WORK='200,200'
//WORK DD UNIT=SYSDA,SPACE=(CYL,(50,50))
//ISUCPY DD DISP=SHR,DSN=XXXX (PDS)
//*--------------------------------------------------------------*
//OSUCPY DD UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE),DISP=(NEW,CATLG),
// DSN=YYYY (PS)
//*--------------------------------------------------------------*
//SASLIST DD SYSOUT=*
//SYSIN DD *
PROC SOURCE INDD=ISUCPY OUTDD=OSUCPY NOPRINT;
//*
Back to top  
wangjiyi



Joined: 14 Aug 2006
Posts: 12
Location: Shanghai, China

Posted: Sun Sep 24, 2006 8:48 am    Post subject: Re: How to download all members from pds at 1 time?  

I often use the xmit command to transfer files from host to pc. Once you want a shortcut to such transfer, because there are many file in the PDS. So if you use ftp to transfer the pds, it is also inconvenient for you to brouse them. While the xmit command will transfer all of the members in a pds to a xmi file which could be opened easily by ximt manager.
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM