Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~
NETW~US60~000000000013220694~003~~IT~USD~2.23~20110201~99991231~01~01~20111104~
NETW~US60~000000000013234445~001~~IT~USD~0.33~20090107~99991231~01~01~~
Logic would be:
- Start reading line @ Row 4.
- Check the date of the last column.
- If date > current date, delete line
- If there is no date, retain line
So from the example above, the record in the middle should be deleted from the file, thus retaining the 1st and 3rd lines.
Much appreciated!
Chumsky