Focal Point
[CLOSED] folder name with an & is causing problems

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

April 24, 2009, 01:36 PM
simba
[CLOSED] folder name with an & is causing problems
Hi:

I am trying to write a report to a folder structure where one of the folders has an & in it. The path is: \\eldnp1515dm4\ntdnf001v1\Reports\Corporate_FP&A\Financial Reporting\2009\. I have researched on both Focal Point and IBI tech site and have tried every iteration of ' and | that I could think of. I also tried splitting the path up so the & is separate and that didn't work. I either get (FOC295) A VALUE IS MISSING FOR: &A\Financial or it acts like the report wrote fine (doesn't give any errors) - but when I check the folder - the report is not written. I currently have it so when the report is run - it is written to the screen and the user can save it off. Before I tell them that is the only option, I thought I would enter a post here to see if anyone has any suggestions.

Thanks in advance. simba

This message has been edited. Last edited by: Kerry,


WF 7.7/Windows
April 24, 2009, 02:16 PM
Moogle
Have you considered saving the report somewhere and then using an operating system command to move it where it needs to go? I'm not sure what OS you are using, but if it's Windows, you could do something like:

DOS MOVE


-WebFOCUS 8.2.01 on Windows
April 24, 2009, 02:19 PM
GamP
The following code will also do the trick:
-* File haha.fex
! subst x: "c:\ibi\apps\r&|r folder"
-RUN
APP MAP X X:\
APP HOLD X
TABLE FILE CAR
SUM SALES
BY COUNTRY
BY CAR
ON TABLE HOLD
END

Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
April 25, 2009, 02:47 AM
<JG>
Being as long in the tooth as I am, using special characters in either folder or file names
is a mistake.

It is not only WebFOCUS that uses & as a reserved/special character.

Put in a good practice methodology and the problems do not arise.
April 27, 2009, 11:47 AM
Francis Mariani
The | is required for & in a folder name. But your problem is that a folder name has a blank. You need to put double-quotes around the path if a folder name has blanks.

The following code works:

FILEDEF H001 DISK "C:\temp\ntdnf001v1\Reports\Corporate_FP&|A\Financial Reporting\2009\h001.pdf"

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE HOLD AS H001 FORMAT PDF
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server