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



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

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

Postby gerelene » Fri Jul 17, 2009 12:51 am

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
gerelene
 
Posts: 1
Joined: Fri Jul 17, 2009 12:21 am
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby dick scherrer » Fri Jul 17, 2009 2:06 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby MAINFRAME GURU » Fri Jul 17, 2009 8:16 pm

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
MAINFRAME GURU
 
Posts: 18
Joined: Fri Jul 10, 2009 8:41 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sat Jul 18, 2009 12:11 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby MAINFRAME GURU » Sat Jul 18, 2009 2:01 am

Hi Dick,

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

Thanks,
Guru
MAINFRAME GURU
 
Posts: 18
Joined: Fri Jul 10, 2009 8:41 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sat Jul 18, 2009 2:42 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post