Unable to create a dummy 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
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

Unable to create a dummy xml file

Post by MOHAMMAD.ISSAQ »

I have a job that creates a xml file.It's working fine.
My requirement is if the input file is a zero byte then also xml template should be created without any data.


Please provide pointers to this....
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right now, what does get created when you have no input?
-craig

"You can never have too many knives" -- Logan Nine Fingers
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

What do you "want" it to do....create all empty elements and blank attributes?

You are probably going to need to change your design in such a way that you always get some type of "row" (and then fill that row with blanks)....otherwise end-of-data will signal the job to shut down, and probably nothing gets written.

Check the size of the file beforehand with another job...perhaps drive the job with a dummy file and do a multi-return lookup to get the data that is now your source...... there are many tricks you could use here, but ultimately, you will most easily manipulate the XMLStage with "some" type of real data row being sent into it.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:idea:
If you want to create a dummy file, then XML for Dummies is probably the best reference to consult!

:lol:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
MOHAMMAD.ISSAQ
Participant
Posts: 78
Joined: Fri Mar 02, 2007 4:54 am
Location: CHENNAI

Post by MOHAMMAD.ISSAQ »

Thanks Ernie for the help..

Now i got the ouput..
Post Reply