Page 1 of 1

Retrieving data from command line

Posted: Mon Jan 09, 2006 1:42 am
by vinodhraj
Hi,

I want to write data into a text file which is obtained from ds administrator command line.

for eg

SELECT * FROM DS_AUDIT

The results has to be populated into a text file.

Any solution

Thanks

Vinod

Posted: Mon Jan 09, 2006 1:50 am
by ArndW
Vinod,

I would use the COMO command in TCL. This duplicates all screen IO to a file until turned off.

Code: Select all

COMO ON {TextFileName}
SELECT * FROM DS_AUDIT
COMO OFF
The file will be created in the project's &COMO& subdirectory as {TextFileName}.