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....
Unable to create a dummy xml file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 78
- Joined: Fri Mar 02, 2007 4:54 am
- Location: CHENNAI
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
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>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 78
- Joined: Fri Mar 02, 2007 4:54 am
- Location: CHENNAI