Sweet! It looks like it works!
It attaches my file as filout.txt.txt I have so many questions now:
If I wanted to get rid of the attachment I can just comment that attachment part out, right?
What do I do if I want to get rid of the extra .txt?
Is there a way to make the attachment .xlsx?
Here's some example code of a simple job I just ran pulling in a part number. In most cases my output files are too big to attach in an email (which is why I'm looking to FTP). This job FTPs the .TXT file perfectly fine but there's no email. If I remove the FTP code it sends an email.
Names...
I've never used an Attach argument. Both the FTP code and the EMAIL code work fine seperately (even without the Attach argument). Do you think it would help?
I have and it still doesn't work. Someone told me that the ftp part is a macro if that means anything... I'm willing to rewrite if there's another way to ftp and then email.
I have some code that ftps a file
//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
FILENAME MAIL EMAIL "MYEMAIL@DOMAIN.COM"
SUBJECT="FILENAME HAS FINISHED"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.