Focal Point
FILEDEF path with spaces

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

March 19, 2007, 12:25 PM
Mark1
FILEDEF path with spaces
Anybody know a way that I can make this path work for me? It seems if I choose a path that doesn't have spaces, it works great!

FILEDEF DATELIST DISK \\HORSEISLAND\NETSHARE\MEDICAL\OOQ\CLINICAL INFO MGMT\CMPROJECTS\OCCUPATIONAL HEALTH\WORKERSCOMP\WC_ALL 1206.XLS

I'm trying to get the variables out of this file to use in my fex. Thanks for the help! I've tried single and double quotes around the path and I looked for help in our manuals, but nothing about spaces in the UNC.


Windows version 768
March 19, 2007, 12:32 PM
FrankDutch
something like "~clinical1" ??




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

March 19, 2007, 12:45 PM
Mark1
I'm sorry, but I'm not following you. Could you expand on your response and maybe include an example? Thanks!


Windows version 768
March 19, 2007, 12:45 PM
Alan B
Use APP:

APP MAP THISPATH '\\HORSEISLAND\NETSHARE\MEDICAL\OOQ\CLINICAL INFO MGMT\CMPROJECTS\OCCUPATIONAL HEALTH\WORKERSCOMP'
APP PREPENDPATH THISPATH

FILEDEF DATELIST DISK THISPATH/WC_ALL 1206.XLS

APP supports UNC, whereas I don't think FILEDEF does.


Alan.
WF 7.705/8.007
March 19, 2007, 01:14 PM
Mark1
Cool!! Thanks Alan. One more note - since the .xls file name had a space in it, I put that in the App path as well and it seems to be working.


Windows version 768
March 19, 2007, 01:24 PM
Carol Dobson
You can use the DOS Shortname for longer filenames. From the Command Window

DIR /X to see the shortnames of the directories or files.



WebFOCUS 7.6.6/TomCat/Win2k3
March 19, 2007, 01:44 PM
Mark1
I'm guessing by the old version 5 manuals, that I can't do this to get the columns out of an Excel file?


Windows version 768
March 19, 2007, 02:19 PM
Lusheng
There are two ways to get around. One is to put a double quotes around the name which has spaces in-between. Another way is if you construct the file path in focexec, you may use ctran subroutine to convert space to underscore or something else.
March 19, 2007, 02:51 PM
susannah
well, first you have to build an ODBC data source (master) to that excel file, and there are rules and regs for doing that, and tons of references here on the Point.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
March 20, 2007, 08:30 AM
Mark1
Gracias everybody!!


Windows version 768