Dataset truncate

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Dataset truncate

Post by CLOPES »

Hello,

I have designed a job sequencer that loop px job that makes an Oracle jointure and create a dataset with the loop value in the name.(So if the loop runs 5 times i have 5 datasets).
A the end of the sequencer, i have to merge all datasets into one.

Here is my problem\question :

Can i make a purge\truncate of a dataset at the beginning of the process and make appends in a dataset file or do i have to make another job that use a funnel and merge all datasets into one ?
May be there's an unix command to trunc a dataset, no ?

thanks
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

You can use the orchadmin command to truncate the dataset. You can use the orchadmin command in command activity or routine activity.

HTH
--Rich
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

thank you

command is

orchadmin truncate dataset_file.ds :D
Post Reply