Converting ebcdic file intoASCII
I'm in the process of automating reports using QTP.I need to convert ebcdis file into ASCII to parse it.Your HELP would be greatly appreciated.
Re: Converting ebcdic file intoASCII
Well I did it few days back. Unfortunately can't handover the code to you. But can still give you the idea.
The EBCDIC format is from IBM it has a different map for values, you can look at below for more details
So the idea is to create a EBCDIC to ASCII map array. This array would contain ASCII value at the index based from EBCDIC.
So codePageASC(193) will give you 65. Where 193 is the EBCDIC code and 65 is the mapped ASCII code.
Once the codepage array is ready you need to read the file byte by byte and convert it using the array and then you get the ASCII file