Large xml 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
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Large xml file

Post by satheesh_color »

Hi All,

We have created a huge xml file(8 million recs) by using xmloutput stage.The job aborts in the middle of xml extraction.

Kindly let me know how to split the same into 2 or more xml files.





Raj.
tcj
Premium Member
Premium Member
Posts: 98
Joined: Tue Sep 07, 2004 6:57 pm
Location: QLD, Australia
Contact:

Post by tcj »

Is the job aborting when you are trying to read the xml file or while you are creating it?

Tim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Assuming the problem is creating it, look into the use of the Trigger Column option, value changes there will trigger a switch to a new output filename.
-craig

"You can never have too many knives" -- Logan Nine Fingers
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

chulett wrote:Assuming the problem is creating it, look into the use of the Trigger Column option, value changes there will trigger a switch to a new output filename. ...
He said there are 8 million records. By enabling this, wont it create as many files?
Arun
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

It depends entirely on the logic of the job. The "trigger" is just a column on the input link.....what you set it to is up to you.....a series of counters that (for example) lead to a column that is always "1" for the first 500,000 rows, and then "2" for the next 500,000....etc. would be one way to use it.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly - you control when the values changes and it doesn't matter what it is. We typically used a Mod() function to increment a counter every X output records.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply