Page 1 of 1

Batch Program to copy PDS from z/os environment to PC

PostPosted: Fri Jul 17, 2009 12:51 am
by gerelene
Hi

I am new to mainframe. i need to get PDS to my local drive which has more members. is there any way to write a batch program which will run in my windows and get the pds copied with all the members from mainframe environment?

is possible can you please tell me how it can be done.?

Thanks
gerelene

Re: Batch Program to copy PDS from z/os environment to PC

PostPosted: Fri Jul 17, 2009 2:06 am
by dick scherrer
Hello and welcome to the forum,

The easiest way to do what you want is to connect to the mainframe via ftp (which is part of your tcp/ip software), point at your pds and download some/all of the members to your local directory.

Re: Batch Program to copy PDS from z/os environment to PC

PostPosted: Fri Jul 17, 2009 8:16 pm
by MAINFRAME GURU
Hi,

As Dick mentioned, This is the easiest way to do so. Commands are mentioned below (if needed and should be used in command prompt):

FTP <IP Address/DSN>

User ID

Password

GET 'mainframe file name' location\filename

ie GET 'XYZ.ABC(MEMBER1)' C:\Folder1\File1.txt


Hope it helps...

Regards,
Guru

Re: Batch Program to copy PDS from z/os environment to PC

PostPosted: Sat Jul 18, 2009 12:11 am
by dick scherrer
Hello,

When pulling multiple members from a pds (but not all of them) it is easiest to use the Windows FTP rather than the command line. The members to be downloaded may be selected using the mouse and transferred at one time rather than needing to issue multiple GETs.

If you are willing to use the downloaded data as the member name, you're done. If you want to change the name or add an extension (i.e. .txt), then each would be done individually.

Re: Batch Program to copy PDS from z/os environment to PC

PostPosted: Sat Jul 18, 2009 2:01 am
by MAINFRAME GURU
Hi Dick,

Can you please tell us how can we get this "Window FTP" as I have not tried this before.

Thanks,
Guru

Re: Batch Program to copy PDS from z/os environment to PC

PostPosted: Sat Jul 18, 2009 2:42 am
by dick scherrer
Hello,

Almost all of the desktop systems i've used since the mid '90s have a Windows-based tcp/ip product installed. One of the selections is FTP. I've used more than a dozen different products, but they all have a similar "look and feel" for FTP.

When launched, an address to connet to is shown near the top (like the url in a brower window) and the remainder of the screen is split between the Local system and the Remote system. The user positions themself at the appropriate location on both systems, selects the "files to transfer, selects the transfer mode, and clicks to send/receive.

The specifics can vary between products, so it would be best to ask your desktop or network support people what is available to you.