Input File:
MAINAK INCOME ANNUL AT RS 1000
JOHN INCOME MONTH AT RS 1340
MAXICANA INCOME DAILY AT RS 1568
JOHN INCOME MONTH AT RS 1340
MAXICANA INCOME DAILY AT RS 1568
The specific phrase/pattern is 'INCOME %%%%% AT RS', where '%%%%%' is variable but it will be always 5 bytes. Need to replace 'INCOME %%%%% AT RS' with 'INCOME DETAILS'.
In another way, wherever 'AT RS' is found, need to replace: the minus 6 bytes of 'AT RS' plus 'AT RS' with 'DETAILS'.
Output File:
MAINAK INCOME DETAILS 1000
JOHN INCOME DETAILS 1340
MAXICANA INCOME DETAILS 1568
JOHN INCOME DETAILS 1340
MAXICANA INCOME DETAILS 1568
It will be great help if anyone can please help me to build the SORT card (SYNCSORT) to achive this.
coded