I have some code that ftps a file
and some code that sends an email
but for some reason when I have the ftp code in there it's not sending the email. I can't figure out why. Can someone help me with this?
Code:
//FTPSTEP EXEC CCFTPP00
//INPUT DD *
123.45.678.9
USERNAME
PASSWORD
CD FLEET/DIRECTORY
PUT 'U00JBK7.FILENAME.TXT' FILENAME.TXT
QUIT;
and some code that sends an email
Code:
FILENAME MAIL EMAIL "MYEMAIL@DOMAIN.COM"
SUBJECT="FILENAME HAS FINISHED";
DATA _NULL_;
FILE MAIL;
PUT "FILENAME HAS FINISHED";
RUN;
but for some reason when I have the ftp code in there it's not sending the email. I can't figure out why. Can someone help me with this?