I am trying to export a query from Teradata Studio 14.10
/ Aster
using the ncluster_export
command line function. I can't find a working example to go off of. Does anyone have one they could share? Also how would I actually run the script (ie ncluster_export myScript1.bat
)?
Assume the following :
File location: 'myhomedir'
Username: 'user1'
Password: 'pass1'
Outfile name: 'outFile1.csv'
If you want to export a result set from Teradata Studio then you can do that from the "Teradata Result Set Viewer" window. There's an export icon on the top right corner.
If you want to run a SQL script then export the results to a file then you should use ACT rather than
ncluster_export
The syntax is -
This will pass a SQL script to Aster and redirect the output to the specified file. The
-F
parameter specifies the delimiter.There are other parameters you can use. act --help will list them