This is probably really easy, but yet I can't think of a way to rab this data.
Let's say you have TWO records with same order # and of course different uniqueID. However, one record as a status as deliver (D), and another record with a complete (Z) status. What I want to do is grab all records with a deliver status and not the completed one.
So what I did was
TABLE FILE filename
PRINT *
WHERE STATUS NE 'Z';
WHERE STATUS EQ 'D';
END
But that wouldn't work because it still has one record with status of D on there.
I can't think of a way to eliminate those order # that has both of this status.
I can't say
WHERE STATUS NE 'Z' AND 'D';
cause it would not show up those order # that has D and not Z.
Let's say you have TWO records with same order # and of course different uniqueID. However, one record as a status as deliver (D), and another record with a complete (Z) status. What I want to do is grab all records with a deliver status and not the completed one.
So what I did was
TABLE FILE filename
PRINT *
WHERE STATUS NE 'Z';
WHERE STATUS EQ 'D';
END
But that wouldn't work because it still has one record with status of D on there.
I can't think of a way to eliminate those order # that has both of this status.
I can't say
WHERE STATUS NE 'Z' AND 'D';
cause it would not show up those order # that has D and not Z.