Will,
You can also keep data files(.csv) and master file description(.mas) files in a seperate directory and then copy them into the current webfocus session temp directory as needed for reporting.
Master file description(forum826.mas)
FILE=FORUM826 ,SUFFIX=COM
SEGNAME=FORUM826,SEGTYPE=S00
FIELDNAME =COUNTRY ,E01 ,A10 ,A10 ,$
FIELDNAME =CAR ,E02 ,A16 ,A16 ,$
FIELDNAME =MODEL ,E03 ,A24 ,A24 ,$
Data file(forum826.csv)
"ENGLAND","JAGUAR","V12XKE AUTO"
"ENGLAND","JAGUAR","XJ12L AUTO"
"ENGLAND","JENSEN","INTERCEPTOR III"
"ENGLAND","TRIUMPH","TR7"
"FRANCE","PEUGEOT","504 4 DOOR"
"ITALY","ALFA ROMEO","2000 4 DOOR BERLINA"
"ITALY","ALFA ROMEO","2000 GT VELOCE"
"ITALY","ALFA ROMEO","2000 SPIDER VELOCE"
"ITALY","MASERATI","DORA 2 DOOR"
"JAPAN","DATSUN","B210 2 DOOR AUTO"
"JAPAN","TOYOTA","COROLLA 4 DOOR DIX AUTO"
"W GERMANY","AUDI","100 LS 2 DOOR AUTO"
"W GERMANY","BMW","2002 2 DOOR"
"W GERMANY","BMW","2002 2 DOOR AUTO"
"W GERMANY","BMW","3.0 SI 4 DOOR"
"W GERMANY","BMW","3.0 SI 4 DOOR AUTO"
"W GERMANY","BMW","530I 4 DOOR"
"W GERMANY","BMW","530I 4 DOOR AUTO"
Here's the focexec to run a report from the above .csv and .mas files
-*
-* COPY THE DATA FILE(.CSV) AND MASTER FILE DESCRIPTION(.MAS)
-* FROM "YOUR_DIRECTORY" INTO THE "TEMP" DIRECTORY WEBFOCUS CREATES
-* DURING YOUR CURRENT SESSION
-*
CMD COPY \\YOUR_DIRECTORY\FORUM826.CSV
CMD COPY \\YOUR_DIRECTORY\FORUM826.MAS
-*
-* THE FILEDEF ASSOCIATES THE .CSV FILE WITH THE .MAS FILE
-*
FILEDEF FORUM826 DISK FORUM826.CSV
-RUN
-*
SET PCOMMA=ON
-*
TABLE FILE FORUM826
PRINT COUNTRY CAR MODEL
END
I don't know if you have any use for this method, but it seems to work for me.
Jim
WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2