Hi all
Can anybody send me a sample FTP script to migrate my dataset from MF to UNIX.Do we need to write the FTP script in a JCL script, if yes please somebody share a script of that kind.
Thanks,
Vinay
I need to FTP from MF to UNIX
Moderators: Frank Yaeger, DikDude, Moderator Group
Hi,
we don't have to write any jcl in mainframe.
In UNIX execute the following :
$ ftp <ip address of mainframe>
then, you will see "ftp>" prompt as shown below.
ftp>
now type below commands to transfer the file from mainframe to unix.
ftp> bin (this specifies the format of the file to be downloaded).
ftp> get < ' mainframe datasetname' > <unix filename>
Note : mainframe dataset name must be in single quotes.
'
we don't have to write any jcl in mainframe.
In UNIX execute the following :
$ ftp <ip address of mainframe>
then, you will see "ftp>" prompt as shown below.
ftp>
now type below commands to transfer the file from mainframe to unix.
ftp> bin (this specifies the format of the file to be downloaded).
ftp> get < ' mainframe datasetname' > <unix filename>
Note : mainframe dataset name must be in single quotes.
'
Natarajan
Chennai
Chennai
HOw to find the Ip address of the MF
Hi;
Thanks for the reply. Can you please tell me how to get the Ip address of my MF server.
Thanks
Vinay
Thanks for the reply. Can you please tell me how to get the Ip address of my MF server.
Thanks
Vinay
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Re: HOw to find the Ip address of the MF
Hello,
Use TSO HOMETEST to find the Mainfram IP. This IP Address can be used with FTP GET. ( to unload files from mainframe)vinay wrote:Can you please tell me how to get the Ip address of my MF server.
Regards,
Anuj
Anuj
MF FTP 2 UNIX
Hi Natraj
Here is the following error i get .It is asking for the ID and PWD, but what i dont understand is that whicj ID and PWD should i give. I have got the same PWD for both the Mainframe & Unix. Please suggest me what kind of ID and PWd is this asking for .
$ ftp 172.24.1.1
Connected to 172.24.1.1.
220-FTPD1 IBM FTP CS V1R9 at SYSD, 13:11:09 on 2009-01-12.
220 Connection will not time out.
Name (172.24.1.1:ab69295): ab69295
331 Send password please.
Password:
530 PASS command failed
Login failed.
ftp>
Here is the following error i get .It is asking for the ID and PWD, but what i dont understand is that whicj ID and PWD should i give. I have got the same PWD for both the Mainframe & Unix. Please suggest me what kind of ID and PWd is this asking for .
$ ftp 172.24.1.1
Connected to 172.24.1.1.
220-FTPD1 IBM FTP CS V1R9 at SYSD, 13:11:09 on 2009-01-12.
220 Connection will not time out.
Name (172.24.1.1:ab69295): ab69295
331 Send password please.
Password:
530 PASS command failed
Login failed.
ftp>
It is not working
Hi Natrajan
I tried it , but it still does not work. Can you please suggest me another way . What confuses me is i think i dont have access to do an FTP in the method you had told me so . Please suggest me in any other way you know.
Thanks
Vinay
I tried it , but it still does not work. Can you please suggest me another way . What confuses me is i think i dont have access to do an FTP in the method you had told me so . Please suggest me in any other way you know.
Thanks
Vinay
-
- Member
- Posts: 1
- Joined: Sun Feb 22, 2009 5:30 pm
I am new to this site. Here's i am sending you the solution how to send the files from MF to UNIX Through JCL.
//JOBCARD ............
//FTP EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*,DCB=(RECFM=FB,LRECL=160,BLKSIZE=3200)
//INPUT DD DSN=TEST.CTLCARDS(MFUNIX),DISP=SHR
/*
TEST.CTLCARDS(MFUNIX)
-----------------------
xxxxxxxxxxxxxx <--- IP address of UNIX server
abcdef <-- User ID of UNIX mail box
123abc <--- Password
put 'File name'/download <--- Path that you need to keep the file
quit
I think it will work.
Please reply me If work or not.
Thanks
Playboy
//JOBCARD ............
//FTP EXEC PGM=FTP
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*,DCB=(RECFM=FB,LRECL=160,BLKSIZE=3200)
//INPUT DD DSN=TEST.CTLCARDS(MFUNIX),DISP=SHR
/*
TEST.CTLCARDS(MFUNIX)
-----------------------
xxxxxxxxxxxxxx <--- IP address of UNIX server
abcdef <-- User ID of UNIX mail box
123abc <--- Password
put 'File name'/download <--- Path that you need to keep the file
quit
I think it will work.
Please reply me If work or not.
Thanks
Playboy
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page