MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ftp code 500

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Wed Mar 18, 2009 1:38 pm    Post subject: ftp code 500 Reply with quote

I ftp a file (Recfm=FB, Blksize=11270, lrecl=1127) from the mainframe.
Code:

ASCII
>>> TYPE A
200 Type set to A.
Command:
put 'host_file'  testfile
>>> SITE FIXrecfm 1127 LRECL=1127 RECFM=FB BLKSIZE=11270
500 'SITE FIXRECFM 1127 LRECL=1127 RECFM=FB BLKSIZE=11270': command not understood.
>>> PORT 1111111111
200 PORT command successful.
>>> STOR testfile
150 Opening ASCII mode SSL data connection for testfile.
226 Transfer complete.
2258 bytes transferred in 0.010 seconds.  Transfer rate 225.80 bytes/sec.

The file was ftp successfully. But there is an message code 500 'SITE FIXRECGM 1127....Command not understood'. Why I am getting it and how to get rid of it?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Mar 18, 2009 2:22 pm    Post subject: Reply with quote

When you're not communicating with another z/OS mainframe, you should always disable the sending of the SITE command, since most other FTP Servers don't recognize it.

5.63 SENDSite subcommand--Toggle the sending of site information.
Back to top
View user's profile Send private message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Tue Mar 24, 2009 9:06 am    Post subject: Another FTP question Reply with quote

I issued FTP command interactively and made a typo of the local file name, FTP terminated the session automatically (quit).
Code:

put 'local_file' remote_file
Local file not found
FTP Return Code = 27000, Error Code = 00002
>>> QUIT,
221 Goodbye


I didn't see an option in 'PUT' command or FTP subcommand not to quit the session automatically.
Back to top
View user's profile Send private message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Tue Mar 24, 2009 12:58 pm    Post subject: Reply with quote

Never mind. I have option '(EXIT' on the FPT command.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group