ftp script scheduled in autosys

I am trying to schedule FTP script through autosys.The scripts works perfectly fine in unix environment.All the run time parameters are evaluated in the profile.Both are unix servers.
But the strange thing is that the script is not getting executed through autosys and it returns success and autosys completes successfuly.
Here the source file is FTMYERS.ACE.WKLY.PAID.G0092V00 and target file is
ACEFW92V00
Any solution to this ??

This is my script

#!/usr/bin/ksh
MACH_IP=$1
REMOTE_DIR=$2
LOCAL_DIRECTORY=$3
mode=$4
direction=$5
REMOTE_FILE=$6
LOCAL_FILE=$7

ftp -v -n $MACH_IP << cmd >> ftplog
user xyz pwd
cd $REMOTE_DIR
lcd $LOCAL_DIRECTORY
$mode
$direction $REMOTE_FILE $LOCAL_FILE
quit
cmd

here REMOTE_FILE=FTMYERS.ACE.WKLY.PAID.G0092V00
and LOCAL_FILE=ACEFW92V00

_____________________

command: ksh /data1/FTP_CBSI.KSH $MACH_IP $REMOTE_DIR $LOCAL_DIRECTORY $mode $direction $REMOTE_FILE $LOCAL_FILE

This is the log of FTP

Connected to 3.230.11.15 (3.182.54.18).
220-Authorized uses only. All activity may be monitored and reported.
220-
220 bashoi12 FTP server ready.
331 Password required for frhuj.
230 User frhuj logged in.
250 CWD command successful.
Local directory now /data/dkikiio
200 Type set to I.
(remote-file) (local-file)
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 348 bytes in 0 transfers.
221-Thank you for using the FTP service on bashoi12 .
221 Goodbye.

I think this happens due to the period(.) inside the file name

one more thing i forgot to mention the varibales REMOTE_FILE and LOCAL_FILE are being evaluated from database.
AP_CBSI_TGT_file=`sqlplus -s DB name/pwd@DB<< EOF
set heading off
select feed_name || 'FW' || Fiscal_week local_name from pocube.t_ap_cbsi_load_control where ftp_status is null and rownum = 1;
EOF`
export AP_CBSI_TGT_file