I have unloaded data from database in the below format.
00A|0002D|0000A|0A|0A|00A| |00{|0000{|0000{|0{|0{|00{
00A|0002D|0000B|0A|0B|00A| |00{|0000{|0000{|0{|0{|00{
00A|0002D|0001G|0A|0A|00B|M |00A|0004D|0001H|0A|0A|00C
00A|0002D|0000B|0A|0B|00A| |00{|0000{|0000{|0{|0{|00{
00A|0002D|0001G|0A|0A|00B|M |00A|0004D|0001H|0A|0A|00C
I would like to conver the above data to user understandable format as
001|00024|00001|01|01|001| |000|00000|00000|00|00|000
001|00024|00002|01|02|001| |000|00000|00000|00|00|000
001|00024|00017|01|01|002|M |001|00044|00018|01|01|003
001|00024|00002|01|02|001| |000|00000|00000|00|00|000
001|00024|00017|01|01|002|M |001|00044|00018|01|01|003
How can i achieve this using SORT? Please help.
Code'd