Need help in storing global parameters/variables
Posted: Wed Oct 19, 2011 4:10 pm
We have a file and we need to store the distinct values of a particular column. We then need to filter the rows of a second file based on a particular column whose value can be any one of the distinct values stored from the first file.
Let us call our files F1 and F2 and columns C1 and C2.
We read the distinct columns of C1 from file F1. Let us say the distinct values are 1,2,3. The file F2 will be filtered based on C2 being 1 or 2 or 3.
I am thinking that the above logic cannot be developed as a single job. I maybe need to develop a server job to store the distinct values of C1 into a UserStatus variable and then call the UserStatus variable in a parallel job to filter the rows of F2. I have not yet tried this approach. Any solutions to the above logic will be greatly appreciated.
Thanks.
Let us call our files F1 and F2 and columns C1 and C2.
We read the distinct columns of C1 from file F1. Let us say the distinct values are 1,2,3. The file F2 will be filtered based on C2 being 1 or 2 or 3.
I am thinking that the above logic cannot be developed as a single job. I maybe need to develop a server job to store the distinct values of C1 into a UserStatus variable and then call the UserStatus variable in a parallel job to filter the rows of F2. I have not yet tried this approach. Any solutions to the above logic will be greatly appreciated.
Thanks.