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

FTP to SFTP in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RanjitRaveendran
Warnings : 1

New User


Joined: 24 Nov 2008
Posts: 20
Location: Bangalore

PostPosted: Fri Feb 06, 2009 3:43 pm
Reply with quote

//HSS00184 EXEC PGM=FTP2,PARM='/APP=FTPNET'
//SYSPRINT DD SYSOUT=*
//SYSPUT DD SYSOUT=*,
// BLKSIZE=80
//* FTP INSTRUCTIONS
//SYSGET DD DSN=TSG.HTHSS.PROD.TRANSLIB(HSS00184),DISP=SHR

I need to change the above code to cater to the FTP to SFTP change. Can anyone give me the best method to do that.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 06, 2009 4:08 pm
Reply with quote

Given the way in which you have posed your question, my only response woul be to edit the member containing the JCL and then save it.

Now, perhaps if you could explain exactly what you need to do, your responses may be more fruitful.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Feb 06, 2009 4:30 pm
Reply with quote

The FTP2 makes me question whether you're using the IBM TCP/IP stack or not. The change from FTP to SFTP requires reading the manual on both, understanding the differences, and coding to site standards (which you will not find on this forum). This is a question best directed to your site support group.
Back to top
View user's profile Send private message
RanjitRaveendran
Warnings : 1

New User


Joined: 24 Nov 2008
Posts: 20
Location: Bangalore

PostPosted: Fri Feb 06, 2009 7:56 pm
Reply with quote

I am required to perform whatever is required to make the transmission from an MVS system to a UNIX system which currently uses FTP and would be changed to SFTP soon. I do not have any information more than this. I googled and find that FTP2 needs to be changed to SFTP2. But what would be the impact of that change in the MVS system?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Feb 06, 2009 8:40 pm
Reply with quote

The first question which you must ask of your system support people is: Has Ported Tools for z/OS (specifically OpenSSH) been installed at your site? If no, then you cannot do SFTP from z/OS, period. If yes, then your system support people can guide you in how to set up your JCL to use the SFTP piece of Ported Tools. Unlike FTP, SFTP is not required to be installed as part of z/OS so not all sites support it.
Back to top
View user's profile Send private message
RanjitRaveendran
Warnings : 1

New User


Joined: 24 Nov 2008
Posts: 20
Location: Bangalore

PostPosted: Fri Feb 06, 2009 8:44 pm
Reply with quote

Thank you. that helps. I am gonna perform a testing based on that information, i guess the more serious concern is in the UNIX end where they might require the id and pwd which i would use in the SFTP script to be authorized to access the system.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Feb 06, 2009 8:48 pm
Reply with quote

Quote:
I googled and find that FTP2 needs to be changed to SFTP2.
I reviewed the libraries installed with TCP/IP on our z/OS system. There is no program FTP2 which makes me think you're using a non-IBM TCP/IP implementation (CA used to support a TCP/IP version that used FTP2). If this is the case, you need to forget my previous post because Ported Tools is for the IBM TCP/IP implementation, and you must go to your system support group for help since they are the only ones that can provide you with any information about using SFTP with the TCP/IP implementation your site is using.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts How do I SFTP a ADRDSSU file from mai... IBM Tools 4
No new posts SFTP replacement for LOCSITE ASA in FTP All Other Mainframe Topics 7
No new posts How to remove remote file older than ... All Other Mainframe Topics 4
No new posts Issue in SFTP a file All Other Mainframe Topics 1
Search our Forums:

Back to Top