Dumping dataset (.ds) file contents to a text file

mlevit picture mlevit · Aug 3, 2009 · Viewed 13k times · Source

At work we use DataStage which uses dataset (.ds) files. I can view the contents of the file from without our UNIX environment by using:

orchadmin dump -name <dataset name>

This only dumps the contents of the file to the screen. What I would like to do is have that dump stored inside a text file which I could then open/read from within Windows.

Thanks

Answer

cori picture cori · Aug 3, 2009

I don't know anything about DataStage, so my answer may be completely off-base, but in general in Unix to append the output of a command to a file instead of to the screen you'd use:

orchadmin dump -name %dataset name% >> %filename%

See the comments on this question for a little more detail.