Calculating different due dates based on installment number.
Moderators: chulett, rschirm, roy
Calculating different due dates based on installment number.
Current Scenario---->
There is a customer table with customer number and number of installments taken by them.A date for payment is also set
Input Table --->
CUSTOMER_NO INSTALLMENT_NO DATE
123 2 12-03-2009
Required Output
We need to generate the installment dates for the customer.Suppose there are 2 instalments left for customer 123 , then we need 2 records in output and also the two due dates ( due date = date+ 30 days)
CUSTOMER_NO DUE_DATE
123 12-04-2009
123 12 -05-2009
How do i incorporate this?
There is a customer table with customer number and number of installments taken by them.A date for payment is also set
Input Table --->
CUSTOMER_NO INSTALLMENT_NO DATE
123 2 12-03-2009
Required Output
We need to generate the installment dates for the customer.Suppose there are 2 instalments left for customer 123 , then we need 2 records in output and also the two due dates ( due date = date+ 30 days)
CUSTOMER_NO DUE_DATE
123 12-04-2009
123 12 -05-2009
How do i incorporate this?
hcdiss
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It doesn't matter whether it's two or 50 or millions, you're going to need some code. It might be a BuildOp, or you may prefer to script it and use an external filter stage. Or you may like to encapsulate your code in an Oracle stored procedure and call that.
I believe there will be a looping construct in the Transformer stage in version 8.2 but, for now, there isn't.
I believe there will be a looping construct in the Transformer stage in version 8.2 but, for now, there isn't.
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.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 437
- Joined: Fri Oct 15, 2004 6:13 am
- Location: Pune, India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Well that, at least, is easily remedied.
Premium membership is not expensive, at less than 30c per day, and helps to fund the hosting and bandwidth costs incurred by DSXchange.
Premium membership is not expensive, at less than 30c per day, and helps to fund the hosting and bandwidth costs incurred by DSXchange.
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.