how to pull out data from DS_AUDIT table to a .txt file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vz7rld
Premium Member
Premium Member
Posts: 4
Joined: Wed Jul 26, 2006 5:30 am
Location: Brasil

how to pull out data from DS_AUDIT table to a .txt file

Post by vz7rld »

Hi,


I would like to know how to export the data from DS_AUDIT table in to a. txt file.

Thanks.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Execute the following commands. Edit your SQL query to suit your requirements. The first command establishes a "print channel", while the LPTR keyword in the query directs output to that channel. I have used channel #4 in the example; you can use any number between 0 and 255.

Code: Select all

SETPTR 4,132,200000,0,0,3,BANNER ds_audit.txt,BRIEF
SELECT * FROM DS_AUDIT LPTR 4 ;

The text file ds_audit.txt will be in a subdirectory called &HOLD& in your project directory on the server.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vz7rld
Premium Member
Premium Member
Posts: 4
Joined: Wed Jul 26, 2006 5:30 am
Location: Brasil

Post by vz7rld »

Thanks a lot Ray, it worked fine.
Post Reply