How about considering rgen command?
C:\Users\Administrator>rgen -h
Usage: rgen or pdm_extract
[ -h (help) ]
[ -f (format string) ]
[ -c (CSV output) ]
[ -e (CSV output with double double quotes) ]
[ -r (informal report output) ]
[ -v (verbose) ]
[ -s (saved_script) ]
[ -u (no headers) ]
[ -d (use dataent.fmt) ]
[ -x (locale sensitive numeric formats) ]
[ -X (extract all tables except table list) ]
[ -B (do not include UTF-8 Byte Order Mark (BOM) (set by NX_ADD_UTF8_BYTE_ORDER
_MARK )) ]
[ -C (convert output to named charset or 'DEFAULT' to use default charset) ]
ALL | database table names ....
Thanks,
Naveen