Focal Point
[SOLVED] special characters in file name with EDAMAIL

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2087024986

February 26, 2018, 10:24 AM
Sandhya j
[SOLVED] special characters in file name with EDAMAIL
Hi,

I am facing issue with special characters (comma and dot) while using to send email.
This is my sample code. I need to use the company name as file name which might contain special characters.
When I run the below code I am getting (FOC1562) EDAMAIL: FILE 'test.test' NOT FOUND

Can someone please provide solution?

-SET &fileName = 'test.test';
TABLE FILE CAR
PRINT
COUNTRY
ON TABLE HOLD AS '&fileName' FORMAT PDF
END
-RUN

EX EDAMAIL emailtest@gmail.com,,edamail test,A,PDF,'&fileName'

Thank You
Sandhya

This message has been edited. Last edited by: FP Mod Chuck,
February 26, 2018, 12:22 PM
Tom Flynn
1. Your error has nothing to do with special characters
2. NEVER use comma's in a file name
3. Does test.test look like a PDF file to you?
4. EDAMAIL "requires" the file to be stored, not just created in space...
5. SMTP Server has to be setup on the Reporting Server
6. emailtest@gmail.com is a valid address?

Try:
   
-SET &FILENAME = 'test.test.pdf';
TABLE FILE CAR
PRINT
COUNTRY
ON TABLE HOLD AS FOCCACHE/&FILENAME FORMAT PDF
END
-RUN

EX EDAMAIL emailtest@gmail.com,,edamail test,A,PDF, FOCCACHE/&FILENAME
-RUN



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
February 28, 2018, 05:29 AM
Don Garland
Sandhya,

Did you get this working?

Thanks Tom


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
February 28, 2018, 12:08 PM
Sandhya j
Yes, this solution is working.
Is there any way to handle single quote (')?

Thanks
Sandhya
February 28, 2018, 12:43 PM
FP Mod Chuck
Sandhya

Try using ''' for each single tick mark..


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 01, 2018, 03:48 PM
Sandhya j
Thank You