Page 1 of 1
xdot
Posted: Mon Apr 05, 2021 6:07 am
by omni
Quick question,
Xdot errors whenever we try a copy to a delimited. We create csv files a lot and use xdot sometimes to test, but have to run those using a program due to the error.
Is there a special method in xdot
use somefile
copy to somenewfile delimited.
Fred
Omni
Re: xdot
Posted: Mon Apr 05, 2021 7:56 am
by rdonnay
There is a bug in DCSTD.CH, line 262. Here is a fix:
Code: Select all
WAS:
#Command COPY TO <(file)> DELIMITED [WITH <*delim*>] [FIELDS <fields,...>] ;
[FOR <for>] [WHILE <while>] [NEXT <next>] ;
[RECORD <rec>] [<rest:REST>] [VIA <(rdd)>] [ALL] [<x:EXIT>] ;
[<lNoProgress:NOPROGRESS>] ;
=> ;
DC_dbExport(<(file)>,{<(fields)>}, ;
<{for}>,<{while}> ; <<< missing comma
<next>,<rec>,<.rest.>,"DELDBE",<(delim)>,,,,,<.x.>,[!<.lNoProgress.>])
IS:
#Command COPY TO <(file)> DELIMITED [WITH <*delim*>] [FIELDS <fields,...>] ;
[FOR <for>] [WHILE <while>] [NEXT <next>] ;
[RECORD <rec>] [<rest:REST>] [VIA <(rdd)>] [ALL] [<x:EXIT>] ;
[<lNoProgress:NOPROGRESS>] ;
=> ;
DC_dbExport(<(file)>,{<(fields)>}, ;
<{for}>,<{while}>, ; <<< add comma
<next>,<rec>,<.rest.>,"DELDBE",<(delim)>,,,,,<.x.>,[!<.lNoProgress.>])
Re: xdot
Posted: Mon Apr 05, 2021 12:40 pm
by omni
Perfect. Thanks a bunch.