Focal Point
Question about changing logical name with foc file

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

July 15, 2008, 09:46 PM
John Wong
Question about changing logical name with foc file
Hi,

I'm trying to dynamically change the file name (or the file path) for a foc file in data migrator. I believe I have to use the "USE" function but I can't get it to run, here's the code that I'm doing:

&DIR = C:\DATA\TEMP.FOC
FILEDEF SASS_VE_STG DISK &DIR

However, when I run it datamigrator, it kept using the original dataset path in the synonym. I got it working for a flat file, but I need this to be a foc file.

Can anyone help please?

Thanks
July 16, 2008, 12:58 AM
Danny-SRL
  
USE
C:\DATA\TEMP.FOC AS SASS_VE_STG 
END



Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

July 16, 2008, 02:09 AM
John Wong
I tried that before too but I got the following message:

(FOC082) INCOMPLETE OR INCORRECT FOCUS FILE NAME IN 'USE' COMMAND: END

Thanks