Hi all,
I have an urgent requirement in my project to reformat the input data where the input data will be like:
Tag ID--> 2 bytes
Length--> 2 bytes
Data--> depending on the length
For example, I have the input data as "3802AB5501X2403MCC" where 38 is the tag id followed by length as 02 and data as "AB"; the next tag id is 55 and length is 01 and data is "X" and so on (it can have upto 60 bytes). I am reading the input file and storing it in a table. Here, I have to insert a new tag ID 50 with length as "02" and data as"XX" inside the input data and reformat the entire data in ascending sequence and write a reformatted output data in ascending order.
Can anyone please help me with some piece of sample COBOL code.
Thanks in advance,
Anjali