Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ERROR while doing FTP data from mainframe. to FTP server

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: ERROR while doing FTP data from mainframe. to FTP server
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 02, 2009 3:17 pm    Post subject:
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    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 02, 2009 3:38 pm    Post subject:
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    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 02, 2009 3:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us