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

How to download all members from pds at 1 time?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kwhong

New User


Joined: 09 Jun 2006
Posts: 3

PostPosted: Sat Jun 10, 2006 9:30 am
Reply with quote

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

Thanks
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Sun Jun 11, 2006 6:29 am
Reply with quote

Download how? And to where - another server?
Back to top
View user's profile Send private message
kwhong

New User


Joined: 09 Jun 2006
Posts: 3

PostPosted: Sun Jun 11, 2006 1:36 pm
Reply with quote

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

Global Moderator


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

PostPosted: Sun Jun 11, 2006 6:08 pm
Reply with quote

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

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Mon Jun 12, 2006 11:48 am
Reply with quote

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

New User


Joined: 09 Jun 2006
Posts: 3

PostPosted: Thu Jun 15, 2006 6:36 am
Reply with quote

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

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 15, 2006 12:36 pm
Reply with quote

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

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Fri Sep 15, 2006 4:59 pm
Reply with quote

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

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

Likki
Back to top
View user's profile Send private message
graswant

New User


Joined: 29 Apr 2006
Posts: 93
Location: Singapore

PostPosted: Wed Sep 20, 2006 12:49 am
Reply with quote

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

New User


Joined: 21 Aug 2004
Posts: 1

PostPosted: Fri Sep 22, 2006 3:22 pm
Reply with quote

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

New User


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

PostPosted: Sun Sep 24, 2006 8:48 am
Reply with quote

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

New User


Joined: 22 Jun 2005
Posts: 65
Location: Mumbai

PostPosted: Wed Dec 15, 2010 4:52 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Dec 15, 2010 5:05 pm
Reply with quote

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

New User


Joined: 22 Jun 2005
Posts: 65
Location: Mumbai

PostPosted: Wed Dec 15, 2010 5:11 pm
Reply with quote

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

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Dec 15, 2010 5:19 pm
Reply with quote

Try this :

www2.sas.com/proceedings/sugi25/25/cc/25p101.pdf
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: Wed Dec 15, 2010 5:34 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Dec 15, 2010 6:01 pm
Reply with quote

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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Dec 15, 2010 9:26 pm
Reply with quote

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

Moderator Emeritus


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

PostPosted: Thu Dec 16, 2010 12:11 am
Reply with quote

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

Active User


Joined: 05 Jun 2009
Posts: 185
Location: Planet Earth

PostPosted: Thu Dec 16, 2010 8:39 pm
Reply with quote

I prefer using XMIT format. XMIT manager for Windows are available for free in CBT Tape's website.
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 Dec 16, 2010 9:05 pm
Reply with quote

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

Active User


Joined: 05 Jun 2009
Posts: 185
Location: Planet Earth

PostPosted: Thu Dec 16, 2010 9:33 pm
Reply with quote

Oops! You are right, Dick. That is a serious risk involved ! May be, I will take back that words of mine icon_smile.gif
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Duplicate several members of/in one l... JCL & VSAM 7
Search our Forums:

Back to Top