View previous topic :: View next topic
|
Author |
Message |
selvamsrinivasan85
New User
Joined: 09 Aug 2010 Posts: 33 Location: Chennai
|
|
|
|
Hi all,
I am having a file that contains a XML extract. I need to read the file and remove the date value records. Main condition is I have to keep the first date value record and remove the following date value records.
Sample records in file:
Line1
Line2
Line3
Date1
Date2
Line 1
Line 2
Line 3
Line 4
Line 5
Date 1
Date 2
Date 3
Date 4
As you see, Date value and line records can be of any record. I need to keep the Date 1 record alone and need to remove date 2, date3 and date4.
Output:
Line1
Line2
Line3
Date1
Line 1
Line 2
Line 3
Line 4
Line 5
Date 1
Date values also not consistent. Can someone throw light on this?. I will pick it up. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2143 Location: USA
|
|
|
|
Where is XML? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
It’s not clear at all what you explained , but based on what you say you better off writing the COBOL program quickly. |
|
Back to top |
|
|
|