Case:
I have to capture the file if its in this format with just the header information without the detail transaction information.
I have to send an email saying the file is bad thats the reason it didnot load anything into the table
Document DocVersion="1.0" File="Sales Transactions Export" ClientID="1000001" ClientName="1519" ExportId="0" Created="2/18/2007 4:26:16 PM" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<BU_List>
<BU BuId="1000062" Number="1519" Name="FRAN - 91912 6.2.9" />
</BU_List>
<Destination_List></Destination_List>
<Category_List></Category_List>
<Item_List></Item_List>
<MOP_List></MOP_List>
</Document>
Can anyone let me know how to solve this issue:
XML inputfile
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Please elaborate on what you mean by "capture". Do you mean "pre-check" in some sense? That would suggest itself as the approach to take.
What is the characteristic that makes it bad - nothing in all five data fields? Or nothing in any one of them? I'd be thinking along the lines of scripting a command to check for contiguity of end tags with beginning tags via an Execute Command activity in the job sequence.
What is the characteristic that makes it bad - nothing in all five data fields? Or nothing in any one of them? I'd be thinking along the lines of scripting a command to check for contiguity of end tags with beginning tags via an Execute Command activity in the job sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
[quote="ray.wurlod"]Please elaborate on what you mean by "capture". Do you mean "pre-check" in some sense? That would suggest itself as the approach to take.
What is the characteristic that makes it bad - nothing in a ...[/quot
The business wants to send an email if the file is getting data with just the header information.(thats for them bad file)
In this case wht is happening the job is not getting aborted and for sending an eamil notification.
I have 2 jobs one for header and another for detail coulmnds
when i run the first job it has to check if there is no deatil columns then check the condotion and send an email.
But in my case wht is happening is if its sucess or failure its sending an eamil notification becoz i have given unconditional trigger in the sequence
Thanks,
What is the characteristic that makes it bad - nothing in a ...[/quot
The business wants to send an email if the file is getting data with just the header information.(thats for them bad file)
In this case wht is happening the job is not getting aborted and for sending an eamil notification.
I have 2 jobs one for header and another for detail coulmnds
when i run the first job it has to check if there is no deatil columns then check the condotion and send an email.
But in my case wht is happening is if its sucess or failure its sending an eamil notification becoz i have given unconditional trigger in the sequence
Thanks,
If you already have a job that parses out the 'detail' records, why not check it after job to see if it found any records to process? Check your 'write' link for a rowcount and, if zero, send the email.
You just need a generic "get a link's rowcount" routine (will come in handy in more than just this situation) and run it in your Sequence job. Trigger the email if a zero comes back.
You just need a generic "get a link's rowcount" routine (will come in handy in more than just this situation) and run it in your Sequence job. Trigger the email if a zero comes back.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
chulett wrote:If you already have a job that parses out the 'detail' records, why not check it after job to see if it found any records to process? Check your 'write' link for a rowcount and, if zero, send the email.
You just need a generic "get a link's rowcount" routine (will come in handy in more than just this situation) and run it in your Sequence job. Trigger the email if a zero comes back.
I have routine to get the row count.
But my question in first job i have to check or in the second job.
I want to sen dan email in the first job If not it will insert data in the first job and nothing will load in the detail job'
If theyu reprocess the same file with detail information and same header than it will maintain duplicates with the same file.
Thanks,
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
