Dynamic file write stage.

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
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Dynamic file write stage.

Post by sagar deshmukh »

recently i have seen a job, in which a flat file will be given a input to a dynamic file write stage.......flat file willl be holding xml data......

can anybody tell me how dynamic file write stage works? and why it is used..>?
i didnt find any content about it anywhere
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That's because there's no such thing.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

Well how can you bve so confident?

if you go to the utility section of pallet....you will find that stage....

any idea? how it works?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

My Palette, which is stock standard out-of-the-box, has no Utility section. Might I suggest that your Palette has been customized?

Secondly there is no stage type of this name in the Repository, either in DS_STAGETYPES (the local repository) or - in version 8 - in the unified metadata repository for Information Server. Might I further suggest therefore that someone at your site has created a custom stage type (it might be a Build stage, a Custom stage or a Wrapped stage)?

Finally, as to how I can be so certain, put that down to 12 years intense experience with the product, being properly certified (and a preferred trainer to IBM), and checking my facts. Might I finally suggest that you compare my post count on DSXchange with your own?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

Hahahaha...you smashing like anything.....i know you are genius.....but when i saw such a thing in my designer i got little bit confused.....So i raised my eye brow..... :shock:

Can you tell me how can we create such a custom stages.....
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's neither a short nor simple subject. Why not track down whomever wrote that one of yours and have them tutor you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's a section in the Parallel Job Advanced Developer's Guide on writing custom stages. How good are your C++ coding skills?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

Hi Ray,

Thanks for the valuable guidance.....also one more thing i would like to know .....do we need to write C++ code in per-record tab only.......
also how to test and debug the rquired code is woking coreect or not...?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Weren't we talking about an already existing stage here?

Code only on the per-record tab? A definite maybe, though I would be very surprised if that were the case. Typically you open the file, declare things and allocate memory in the "before" tab and close the file, clean up and free memory in the "after" tab.

You make your own arrangements about debugging. Maybe you test the code completely externally to DataStage (apart from the transfer, of course), then test in place.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply