Warm greeting!!
My input File looks like as below
--------------------------------------------------------------------
HEADING1
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/18/14....03:38:00....03:38:00....03:52:00....03:52:30....00:14:30
11/19/14....02:52:00....02:52:00....02:56:00....02:56:30....00:04:30
11/20/14....03:25:00....03:25:00....03:33:00....03:33:30....00:08:30
--------------------------------------------------------------------
HEADING2
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/21/14....03:17:00....03:17:00....03:32:00....03:39:30....00:22:30
11/22/14....03:45:00....03:45:00....04:14:00....04:27:30....00:42:30
--------------------------------------------------------------------
HEADING2
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/22/14....05:11:00....05:11:00....05:11:00....05:12:30....00:01:30
11/23/14....02:47:00......:..:00......:..:00......:..:00.... 00:00:00
HEADING1
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/18/14....03:38:00....03:38:00....03:52:00....03:52:30....00:14:30
11/19/14....02:52:00....02:52:00....02:56:00....02:56:30....00:04:30
11/20/14....03:25:00....03:25:00....03:33:00....03:33:30....00:08:30
--------------------------------------------------------------------
HEADING2
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/21/14....03:17:00....03:17:00....03:32:00....03:39:30....00:22:30
11/22/14....03:45:00....03:45:00....04:14:00....04:27:30....00:42:30
--------------------------------------------------------------------
HEADING2
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/22/14....05:11:00....05:11:00....05:11:00....05:12:30....00:01:30
11/23/14....02:47:00......:..:00......:..:00......:..:00.... 00:00:00
Output File :
--------------------------------------------------------------------
HEADING1
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/18/14....03:38:00....03:38:00....03:52:00....03:52:30....00:14:30
11/19/14....02:52:00....02:52:00....02:56:00....02:56:30....00:04:30
11/20/14....03:25:00....03:25:00....03:33:00....03:33:30....00:08:30
11/21/14....03:17:00....03:17:00....03:32:00....03:39:30....00:22:30
11/22/14....03:45:00....03:45:00....04:14:00....04:27:30....00:42:30
11/22/14....05:11:00....05:11:00....05:11:00....05:12:30....00:01:30
11/23/14....02:47:00......:..:00......:..:00......:..:00.... 00:00:00
HEADING1
--------------------------------------------------------------------
(ABC) (AASSDD) (DDDDEC) (CAAABA) TOTAL
PROCESSING RECEIVED ABC ABC XMIT START PROCESSING
DATE FROM TSYS START TIME END TIME TIME DWNSTRM TIME
---------- --------- ---------- --------- ------------ ----------
MM/DD/YY HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS HH:MM:SS
---------- --------- ---------- --------- ------------ ----------
11/18/14....03:38:00....03:38:00....03:52:00....03:52:30....00:14:30
11/19/14....02:52:00....02:52:00....02:56:00....02:56:30....00:04:30
11/20/14....03:25:00....03:25:00....03:33:00....03:33:30....00:08:30
11/21/14....03:17:00....03:17:00....03:32:00....03:39:30....00:22:30
11/22/14....03:45:00....03:45:00....04:14:00....04:27:30....00:42:30
11/22/14....05:11:00....05:11:00....05:11:00....05:12:30....00:01:30
11/23/14....02:47:00......:..:00......:..:00......:..:00.... 00:00:00
I need to remove the heading 2 and heading 3 in a sortcard, down the time heading 4 and heading 5 may also be included in the input file,but my output should have only HEADING 1 and remaining HEADING should be supressed.
Kindly guide me how to proceed further.
Thanks in Advance.
Ramsee