Hi guys,
I need some help with the logic. I have a monthly file as an input. Based on the incoming file i need to generate a sequential number( the incoming file has a date column). The sequential number increments by 1 for every next(next month's) file. If for some reason I wanted to run the same monthly file again, the sequential number shouldn't increment by 1. Can you guys help me out with this?
Marcus.![/code]
How to differentiate a new file from the old one.
Moderators: chulett, rschirm, roy
Craig,
Here is an example of what i am supposed to do,
I need to genereate a source_ id for the source file ( a sequential number starting with 1) and for each different values in ColB ineed to generate ColB_id which is unique for each value in colB . for the next months source file the soirce_id should increment by 1( in this case 2) and the colB_id should increment by1 ( in this case to 3 since there are two different colB values). If for any reason I ran the same month file again the values shouldn't increment.
I got the point that we should store them and do a lookup , but I am still confused about how ti increment the values
Thanks!
Here is an example of what i am supposed to do,
Code: Select all
source file
ColA ColB
May a
May a
May a
May b
May b
May b
I got the point that we should store them and do a lookup , but I am still confused about how ti increment the values
Thanks!