Tracy Hall
New Member
Afternoon everyone,
I need a tiny bit of help. I have brought in two csv files and put them each in their own temp table. Now I need to put them in one together. The thing is that not all of the data is going into the final product.
I am sure that there is an easier way to do this, but as many of you know, when you are desperately looking for something, it seems to hide from you.
Anyway, this is roughly what I have and it just sits there thinking about it..... forever.
Anyone see the problem
I need a tiny bit of help. I have brought in two csv files and put them each in their own temp table. Now I need to put them in one together. The thing is that not all of the data is going into the final product.
I am sure that there is an easier way to do this, but as many of you know, when you are desperately looking for something, it seems to hide from you.
Anyway, this is roughly what I have and it just sits there thinking about it..... forever.
Anyone see the problem
Code:
FOR EACH ttProd NO-LOCK:
CREATE ttNAAendResult.
ASSIGN
* BUNCH OF FIELDS * (to end result table)
.
FOR EACH ttAttr NO-LOCK:
IF ttProd.field1 = ttAttr.field1 THEN
DO:
ASSIGN
* BUNCH OF FIELDS * (to end result table)
.
END.
ELSE
DO:
END.
END.
END.
[code]