Hi all, having a problem with a database.
I have a feed from a mainframe that sends over data in the following
format, I've numbered the rows 1 through 8 for this message. Under
Entry 208, there is a begin, cancel, begin, and end record, along with
a time. I need to keep only the second Begin record (3) and the End
record (4); I'm not concerned about records 1 and 2. Some sort of
thing that finds a cancel record, and deletes the prior begin record...
but I'm not sure how.
Similarly, with Entry 0232, I want to keep record 5 and 8, but delete
record 6 and 7... Does anyone have an idea how this could be done?
Entry Type Time OprCycleSort
1 0208 BEGIN 041417 6 050 093=39=SRT
2 0208 CANCEL 041459 $.00 0
3 0208 BEGIN 041509 6 050 093=39=SRT
4 0208 END 041718 $368,521.94 68
5 0232 BEGIN 085809 6 050 086=02=41B
6 0232 SUSPEND 090528 $.00 0
7 0232 RESTART 090530 6 050 086=02=41B
8 0232 END 091658 $22,433,881.48 3,343