FTP a ps from mainframe to desktop

Mohanapriya
Posts: 1
Joined: Thu Aug 19, 2010 3:49 pm
Skillset: cobol
Referer: by searching mainframe related questoions through internet

FTP a ps from mainframe to desktop

Postby Mohanapriya » Thu Aug 19, 2010 4:04 pm

Can anyone help me to ftp a ps from mainframe to desktop...

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: Jcl

Postby Robert Sample » Thu Aug 19, 2010 4:27 pm

Your post is not at all clear. Do you want to use WS-FTP or FTP command line on your desktop to pull a file from the mainframe to the PC? If so -- open the mainframe, then use the GET command (or drag and drop) to get the file.

If you wan to run a batch job on the mainframe to FTP a file to your desktop -- this cannot be done, as the FTP connection requires a server at the other end and it is extremely rare to find a desktop that has the server software running to allow this to be don. Most sites forbid it due to DHCP and other issues.

User avatar
MrSpock
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
Referer: ibmmainframes.com
Location: Raleigh NC USA
Contact:

Re: Jcl

Postby MrSpock » Thu Aug 19, 2010 4:30 pm

FTP (File Transfer Protocol) is a standard internet protocol for exchanging data between two systems. It is a client-server application, so there has to be an active client and an active server in order for FTP to work.

These are a few questions you need to answer for yourself:

- Is this even allowed where you work? (most places don't like to allow the possibility for employees to steal proprietary data).
- Do you, or does your job, have the authority to run the FTP program?
- Do you have the proper network connectivity between the two systems?
- If the mainframe is initiating the FTP from a job, then it is acting as the client. So it will need to connect to an active FTP server. Do you have an FTP server installed, configured, and running on that desktop system?
- All FTP does is move the data. It will deal with the EBCDIC-to-ASCII conversion if you tell it to. Any other issues dealing with the data content and format have to be dealt with by you outside of FTP by some other means.

noggin
Posts: 4
Joined: Tue Nov 02, 2010 9:53 pm
Skillset: Cobol, PL/1, Natural, JCL, TSO, ISPF, LCM, Perl, SQL, Adabas, DB2, Oracle, FileNet, HTML, Java, C, Websphere MQ, XML, UML, Connect Direct,
Referer: Google

Re: FTP a ps from mainframe to desktop

Postby noggin » Tue Nov 02, 2010 11:07 pm

With most modern 3270 terminal emulators that run on PCs (Rumba, IBM Personal Comms for example), once you have logged onto TSO you can download a mainframe dataset to the PC (or upload the other way). There will be options to convert ASCII to EBCDIIC, convert end-of-record markers to CR/LF etc.

Is this what you mean?

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

Re: FTP a ps from mainframe to desktop

Postby steve-myers » Wed Nov 03, 2010 11:04 am

noggin wrote:With most modern 3270 terminal emulators that run on PCs (Rumba, IBM Personal Comms for example), once you have logged onto TSO you can download a mainframe dataset to the PC (or upload the other way). There will be options to convert ASCII to EBCDIIC, convert end-of-record markers to CR/LF etc.

Is this what you mean?
Just my humble opinion. The 3270 file transfer works OK, but it is usually much slower than FTP. For small data sets it's probably quicker than FTP.