I would use the provided sqldump utility for this. It will upload the table you want directly into the CSV file with the suffix .dsql. It works on all platforms. The table parameter works with wildcards, so you can immediately unload all tables (change PUB.ABCCode to PUB.% In the example below.
In my testing, this is 80% faster than using the EXPORT command in 4GL code.
c:\program files\epicor\>sqldump -u XXXX -a XXXX -t PUB.ABCCode progress:T:l
ocalhost: 9450: mfgsys
OpenEdge Release 10.2A0329 as of Thu Apr 19 10:02:30 EDT 2012
Table : PUB.ABCCode
Dump file : PUB.ABCCode.dsql
Dumped 10 Records, 1647 bytes, 1 seconds.
Dumped 1 Tables
c:\program files\epicor\>
source
share