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

ERROR while doing FTP data from mainframe. to FTP server


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pradyutonnet
Currently Banned

New User


Joined: 13 Nov 2005
Posts: 29
Location: pune,mumbai

PostPosted: Wed Sep 02, 2009 1:42 pm
Reply with quote

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 :
icon_sad.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Sep 02, 2009 3:17 pm
Reply with quote

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
View user's profile Send private message
pradyutonnet
Currently Banned

New User


Joined: 13 Nov 2005
Posts: 29
Location: pune,mumbai

PostPosted: Wed Sep 02, 2009 3:29 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Sep 02, 2009 3:38 pm
Reply with quote

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
View user's profile Send private message
pradyutonnet
Currently Banned

New User


Joined: 13 Nov 2005
Posts: 29
Location: pune,mumbai

PostPosted: Wed Sep 02, 2009 3:47 pm
Reply with quote

now m getting below given error icon_sad.gif

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Sep 02, 2009 3:57 pm
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top