View previous topic :: View next topic
|
Author |
Message |
pradyutonnet Currently Banned New User
Joined: 13 Nov 2005 Posts: 29 Location: pune,mumbai
|
|
|
|
I am trying to FTP a file to FTP Server, I am getting the following error..
Code: |
EZA1460I Command:
EZA1736I PUT /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX +
EZA1736I 'FSP.KY2K.KLY620.MTBC.FEED' (REPLACE
EZA1542I Usage: PUT localfile <foreignname>
EZA1735I Std Return Code = 27000, Error Code = 00007
EZA1701I >>> QUIT
221 Goodbye. |
My Code is :-
Code: |
//FTP3 EXEC PGM=FTP
//OUTPUT DD SYSOUT=*
//SYSPRNT DD SYSOUT=*
//INPUT DD *
10.2.78.20
flame
p4ssw0rd
PUT /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX +
'FSP.KY2K.KLY620.MTBC.FEED' (REPLACE
QUIT
/* |
Can you help me in resolving this issue :
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The system is telling you everything you need to know to resolve the issue:
Code: |
EZA1736I PUT /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX +
EZA1736I 'FSP.KY2K.KLY620.MTBC.FEED' (REPLACE
EZA1542I Usage: PUT localfile <foreignname> |
You are telling FTP that your file is a Unix System Services file stored under /home/imrtsctp/LPC/Archive and FTP is telling you that one or more of the directories in that path do not exist. |
|
Back to top |
|
|
pradyutonnet Currently Banned New User
Joined: 13 Nov 2005 Posts: 29 Location: pune,mumbai
|
|
|
|
i had manually checked in FTP server the folder is exist with archive name... what i want to do is i want FTP my maniframe file to Unix system services file...i had executed the below given jcl also but m still getting same error:(
Code: |
000013,PUT 'FSP.KY2K.KLY620.MTBC.FEED' +
000014, /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX (REPLACE
000015,QUIT
000016,//* |
Error
Code: |
EZA1460I Command:
EZA1736I PUT 'FSP.KY2K.KLY620.MTBC.FEED' +
EZA1736I /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX (REPLAC
EZA1542I Usage: PUT localfile <foreignname>
EZA1735I Std Return Code = 27000, Error Code = 00007 |
as per my understanding if we submit the ftp job then job will automatically create the file in FTP location and copy the data from mainframe to FTP location..correct me if i am wrong...
can you please provide me any example for FTP mainframe file to FTP server. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Sorry about that -- not enough coffee yet. Look carefully at the EZA1542I statement in your output (the Usage statement). Do you see any optional pieces like (replace? No? The option to replace the file is made by the remote server and you cannot, unfortunately, override that. Take the (replace off your PUT command and try again. |
|
Back to top |
|
|
pradyutonnet Currently Banned New User
Joined: 13 Nov 2005 Posts: 29 Location: pune,mumbai
|
|
|
|
now m getting below given error
Code: |
EZA1736I PUT 'FSP.KY2K.KLY620.MTBC.FEED' +
EZA1736I /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX
EZA1701I >>> SITE FIXrecfm 185 LRECL=185 RECFM=FB BLKSIZE=27935
500 Unknown SITE command.
EZA1701I >>> PORT 10,5,5,11,14,145
200 PORT command successful. Consider using PASV.
EZA1701I >>> STOR /home/imrtstcp/LPC/Archive/FSP.KY2K.KLY620.MTBC.FEED.DXXXXXX
553 Could not create file.
EZA1735I Std Return Code = 27553, Error Code = 00002
EZA1701I >>> QUIT |
Please help |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
To get rid of the "Unknown SITE command", put a QUOTE SENDSITE before the PUT in your FTP commands.
Since you cannot create the file, you need to contact whoever owns the server and have your user id updated to have create authority to the directory. Since the error is coming from the other server, there's literally nothing you can do on the mainframe side to fix it -- the solution must occur on the remote server.
Suggestion: put a CD /home/imrtstcp/LPC/Archive before the PUT so you can get the directory out of the PUT command. If there's a directory problem it'll show up on the CD command instead of the PUT command. |
|
Back to top |
|
|
|