March 19, 2007, 12:25 PM
Mark1FILEDEF 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.
March 19, 2007, 12:32 PM
FrankDutchsomething like "~clinical1" ??
March 19, 2007, 12:45 PM
Mark1I'm sorry, but I'm not following you. Could you expand on your response and maybe include an example? Thanks!
March 19, 2007, 12:45 PM
Alan BUse 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.
March 19, 2007, 01:14 PM
Mark1Cool!! 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.
March 19, 2007, 01:24 PM
Carol DobsonYou can use the DOS Shortname for longer filenames. From the Command Window
DIR /X to see the shortnames of the directories or files.
March 19, 2007, 01:44 PM
Mark1I'm guessing by the old version 5 manuals, that I can't do this to get the columns out of an Excel file?
March 19, 2007, 02:19 PM
LushengThere 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
susannahwell, 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.