Dear Steve,
>A colleague has a problem writing dbf files using EXPORT.
>EXPORT first produces a temporary GSH file on the C: drive which is
> then converted by DATALOAD.DLL to the required dbf file.
>However, the PC he is working on doesn’t have a c: drive,
> so an error is produced. Is there any way of getting the
>temporary file to be created on a different drive?
EXPORT uses the following commands to create a temporary file.
%PREFIX _temp
CONCAT _temp,'D'; WIDTH=4
%tempfile #_temp; outfile; index : %close
concat [case=Upper] outfile
edit [channel=!t('G$\\\\$\\$',':')] outfile
edit [channel=!t('G$.TMP$.GSH$',':')] outfile
PRINT outfile
IF you print outfile this should be in the Windows temp directory
which should always be writable and exist. If this doesn’t exist
then there is something wrong with the windows set up. You should
make sure the environment variable TMP is set to a valid directory.
The easiest way of checking this is to type the SET command in an
command window.
If outfile is turning up in an invalid place, then you should
create an environment variable TMP that points to a valid writable
directory.
On my PC I get the output:
outfile
C:\TEMP\GENSTAT\G140D7.GSH
I hope this helps. If it doesn’t can you let me know, and run the
the above commands and report what you get for outfile, and what
TMP is set to (if at all). Note GenStat uses the directory GenStat
within TMP.
Regards, David.
______________________________________________
Dr David Baird Statistical Consultant and GenStat Developer
VSN (NZ) Limited ([log in to unmask])
40 McMahon Drive, Aidanfield, Christchurch
Ph +64 3 3350588 Cell +64 21 1160803
|