I have data in the following format
PRTNUM COMCDE QTY
part1 ABA 100
part2 BAA 150
part3 CA 100
part4 NS135 1000
part5 ABB 200
part6 DB 500
Parts that have a COMCDE field that begins with either a, B or C need to be group together under an FG column and parts with COMCDE starting with anything other than A, B or C need to be grouped as RM
What I want to end up with is the following:
TYPE QTY
FG 550
RM 1500
Can anyone advise me on how best to do this?
Mighty
PRTNUM COMCDE QTY
part1 ABA 100
part2 BAA 150
part3 CA 100
part4 NS135 1000
part5 ABB 200
part6 DB 500
Parts that have a COMCDE field that begins with either a, B or C need to be group together under an FG column and parts with COMCDE starting with anything other than A, B or C need to be grouped as RM
What I want to end up with is the following:
TYPE QTY
FG 550
RM 1500
Can anyone advise me on how best to do this?
Mighty