I have multiple files containing thousands of datasets names and I need to extract the last two characters from the second level of the dataset, below is an example of a files and what I am looking for.
file before:
A B C
Dataset name Volume CUA
[TABLE="width: 0"]
<tbody>[TR]
[TD]PMXGS.MKTCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.EXICH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.PFRCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZBGCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZJJCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRS.CONCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
</tbody>[/TABLE]
What I want it to look like is this:
A B C D
Dataset name Volume CUA Last two
[TABLE="width: 0"]
<tbody>[TR]
[TD]PMXGS.MKTCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] CH
[/TD]
[/TR]
[TR]
[TD]PMXRA.EXIBZ.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] BZ
[/TD]
[/TR]
[TR]
[TD]PMXRA.PFR7C.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] 7C
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZBGCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] CH
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZJJCM.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] CM
[/TD]
[/TR]
[TR]
[TD]PMXRS.CONDH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] DH
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Mark
file before:
A B C
Dataset name Volume CUA
[TABLE="width: 0"]
<tbody>[TR]
[TD]PMXGS.MKTCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.EXICH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.PFRCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZBGCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZJJCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
[TR]
[TD]PMXRS.CONCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[/TR]
</tbody>[/TABLE]
What I want it to look like is this:
A B C D
Dataset name Volume CUA Last two
[TABLE="width: 0"]
<tbody>[TR]
[TD]PMXGS.MKTCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] CH
[/TD]
[/TR]
[TR]
[TD]PMXRA.EXIBZ.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] BZ
[/TD]
[/TR]
[TR]
[TD]PMXRA.PFR7C.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] 7C
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZBGCH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] CH
[/TD]
[/TR]
[TR]
[TD]PMXRA.ZJJCM.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] CM
[/TD]
[/TR]
[TR]
[TD]PMXRS.CONDH.LOADLIBC
[/TD]
[TD] CMOCI0
[/TD]
[TD] B325
[/TD]
[TD] DH
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Mark