View previous topic :: View next topic |
Author |
Message |
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Thu Oct 15, 2009 2:50 pm Post subject: FTP text file to mainframes |
|
|
Hi all,
This is regarding FTP text file to Dataset in mainframes.
(I have searched couple of links posted earlier in this forum. I found mostly they are related FTP to windows from mainframes.
I have gone thru couple of links and posting by Kolusu too.
But, I was unable to get the FTP to mainframes posting.)
I am trying to write a JCL to FTP the text file from local PC
to mainframes.
But, I am ending with issues.
Please help me in this regard.
Herein is the JCL:
Code: |
***************************** Top of Data ******************************
//XXXXXC JOB (540-0-2853-28),'DB2 SUPPORT',CLASS=C,MSGCLASS=T,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID,USER=XXXXX
//*XXXXXA JOB (ACCOUNT),'NAME'
//*
//*
//JOBLIB DD DISP=SHR,DSN=blah.blah.SDSNLOAD
//PROCLIB JCLLIB ORDER=blah.blah.PROCLIB
//STEPNAME EXEC PGM=FTP,PARM='aaa.bbb.ccc.dd' ===> {PC IP ADDRESS}
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
some.company.com ==> {MAINFRAMES HOST NAME}
USERID XXXXXXXX ====> {MAINFRAMES USERID AND PASSWORD}
GET 'XXXXX.SYSREC.TEST.FTP3' (REPLACE 'C:\FTP-TEST.TXT' ==> {DATA IN THE PC IN C:\ DRIVE}
QUIT
/*
**************************** Bottom of Data ****************************
Herein is the OUTPUT:
******************************** Top of Data ***********************************
EZA1736I some.company.com
EZY2640I Using 'TCPIP.FTP.DATA' for local site configuration parameters.
EZA1450I IBM FTP CS V1R10
EZA1554I Connecting to: some.company.com aaa.bbb.cc.ddd port: 21.
220-FTPV2155 IBM FTP CS V1R10 at some.company.com, 12:37:35 on 2009-10-15.
220 Connection will close if idle for more than 30 minutes.
EZA1459I NAME (some.company.com:XXXXX):
EZA1701I >>> USER aaa.bbb.ccc.dd
331 Send password please.
EZA1789I PASSWORD:
EZA1701I >>> PASS
530 PASS command failed
EZA1460I Command:
EZA1736I GET 'XXXXX.SYSREC.TEST.FTP3' (REPLACE 'C:\FTP-TEST.TXT'
EZA1542I Usage: GET foreignfile <localname> <(REPLACE>
EZA1460I Command:
EZA1736I QUIT
EZA1701I >>> QUIT
221 Quit command received. Goodbye.
******************************* Bottom of Data ******************************** |
_________________ Satya |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Oct 15, 2009 3:21 pm Post subject: |
|
|
satyenderd,
isnt it obvious?
Quote: |
331 Send password please.
EZA1789I PASSWORD:
EZA1701I >>> PASS
530 PASS command failed
|
Kolusu |
|
Back to top |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Fri Oct 16, 2009 8:07 am Post subject: |
|
|
Deleted post.... |
|
Back to top |
|
|
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Fri Oct 16, 2009 6:53 pm Post subject: |
|
|
Thanks Kolusu for your quick response.
I am looking into the JCL, I will update the posting once i come up with soultion or end up with errors. _________________ Satya |
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Mon Oct 26, 2009 4:40 pm Post subject: |
|
|
Unless your pc is configured as an FTP Server, you will not be able to "pull" the file from the pc to the mainframe using mainframe ftp jcl. . .
Very few pc's are configured as a server (most organizations do not allow this). Almost all are configured with an ftp client which is part of the tcp/ip product. _________________ All the best,
di |
|
Back to top |
|
|
|
|