Exit status for ftp in CShell

Is there a way in the following CShell code to have ftp give an exit status that can be retrieved to determine if it succeeded or failed?

ftp -n logxx.xxxx.xxx.xxx.com <<DO_FTP1
quote user $user_name
quote pass $password
ascii
put $js_file_name
bin
put $FinalZipFile
quit
DO_FTP1

Thanks for any help,
Paul Hudgens
Denver

You could redirect the stderr and check it after the operation:

ftp -n logxx.xxxx.xxx.xxx.com <<DO_FTP1 2>log.err
...
DO_FTP1
[ -s log.err ] || echo an error occurred ...