View previous topic :: View next topic
|
Author |
Message |
kwhong
New User
Joined: 09 Jun 2006 Posts: 3
|
|
|
|
Hi, May I know how to download all members from pds at 1 time?
Thanks |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Download how? And to where - another server? |
|
Back to top |
|
|
kwhong
New User
Joined: 09 Jun 2006 Posts: 3
|
|
|
|
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
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
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
New User
Joined: 09 Jun 2006 Posts: 3
|
|
|
|
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
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
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
New User
Joined: 12 Sep 2006 Posts: 13
|
|
|
|
ya prasad is right.........
mget pdsname(*) will work for u in dos...
Likki |
|
Back to top |
|
|
graswant
New User
Joined: 29 Apr 2006 Posts: 93 Location: Singapore
|
|
|
|
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
New User
Joined: 21 Aug 2004 Posts: 1
|
|
|
|
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
New User
Joined: 14 Aug 2006 Posts: 12 Location: Shanghai, China
|
|
|
|
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 |
|
|
nileshyp
New User
Joined: 22 Jun 2005 Posts: 65 Location: Mumbai
|
|
|
|
I have created PS file using above SAS script/program. However could someone let me know how can I again create PDS out of PS file? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
why do you not use the terminal emulators upload/download built-in script.
they are the 4th and 5th button on your emulator. (they are under the COMMUNICATIONS verbiage). |
|
Back to top |
|
|
nileshyp
New User
Joined: 22 Jun 2005 Posts: 65 Location: Mumbai
|
|
|
|
I did not use IND$FILE GET (i.e. emulators upload/download tool) because I wanted to download all PDS members at one shot. And I did is successfully using above solution (i.e. SAS program ) However now I need to know now how can I delimit and create PDS again out of PS file created using SAS program. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Find the Utilities manual in the DF/SMS bookshelf and read up on IEBUPDTE. You can rebuild the PDS from the SAS PROC SOURCE output by using IEBUPDTE having SYSIN be the PROC SOURCE output. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
most pc based development tools
(the ones used to create cobol systems on a pc for host implementation)
use the same scripts at the built in upload/download tool.
you simply do not understand your tools.
your skill set it limited.
and you are more than welcome to spend hours trying to rebuild your pds downloaded by the nifty sas tool. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Holy Sith,
Convert the PDS to an XMIT file, download it to the PC in one go (after first using AMATERSE to reduce its size), UnTerse it on the PC, and then use XmitManager or RECV390 to get all members out.
Building an XMIT file on the PC is possible with the paid-for Tachyon utilities. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Every tcp/ip 3270-emulator that i've used for 15 years also has an FTP client.
To download an entire pds of text, i simply position myself at the pds which shows all of the members as files, select them all, and click the little arrow to send the lot of them to the target directory. . .
Quite handy for a one-time shot, but would be better to automate for something to be done regularly/repeatedly. |
|
Back to top |
|
|
rockish
Active User
Joined: 05 Jun 2009 Posts: 185 Location: Planet Earth
|
|
|
|
I prefer using XMIT format. XMIT manager for Windows are available for free in CBT Tape's website. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
None of the clients i've had since the mid-90's permit individual(s) downloading "things" from the internet and installing them. . .
One concern is virus/malware infection. A larger issue is that the desktop support group has an inventory of all of the "standard" software on each pc and automatically maintains the desktop software.
As FTP is available on every desktop, additional software is not an issue. |
|
Back to top |
|
|
rockish
Active User
Joined: 05 Jun 2009 Posts: 185 Location: Planet Earth
|
|
|
|
Oops! You are right, Dick. That is a serious risk involved ! May be, I will take back that words of mine |
|
Back to top |
|
|
|