Hello All,
My problem is as below:
====================================================================
When
Field1 of AFILE Equal to Field1 of BFILE
Field2 of AFILE Equal to Field2 of BFILE
Field3 of AFILE Equal to Field3 of BFILE
Field4 of AFILE Equal to Field4 of BFILE
Field5 of AFILE Equal to Field5 of BFILE
I will have to see if there are any entries in Field6,Field7,Field8,Field9,Field10,Field11,Field12,Field13,Field14,Field15 of BFILE...
(All these 10 fields from Field6 to Field15 are 1 char defined)
If there are entries in all 10 fields then the count is 10
If there are entries in 9 fields then the count is 9
If there are entries in 8 fields then the count is 8
If there are entries in 7 fields then the count is 7
If there are entries in 6 fields then the count is 6
If there are entries in 5 fields then the count is 5
If there are entries in 4 fields then the count is 4
If there are entries in 3 fields then the count is 3
If there are entries in 2 fields then the count is 2
If there are entries in 1 fields then the count is 1
If there are no entries in any of the fields then the count is 0...
what I want to do is
I want to insert this count field in the AFILE when each record of AFILE is equal to its matching record in BFILE
based on the below conditions
Field1 of AFILE Equal to Field1 of BFILE
Field2 of AFILE Equal to Field2 of BFILE
Field3 of AFILE Equal to Field3 of BFILE
Field4 of AFILE Equal to Field4 of BFILE
Field5 of AFILE Equal to Field5 of BFILE
All help is greatly appreciated!
Thanks,
Donna.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.