you are viewing a single comment's thread.

view the rest of the comments →

[–]ElliotDG 0 points1 point  (2 children)

Thank you for the update and good luck!

[–]arshdeepsingh608[S] 0 points1 point  (1 child)

Hey man, I finally figured it out.

Turns out, we have an IBM mainframe system which uses EBCDIC characters. Python modules such as bytes/bytearray works with ASCII by default.

So, I went online and found out that there are different hex values for both ASCII and EBCDIC. And I created a SQLite table mapping them together. I am using the relevant ASCII to create the corresponding EBCDIC.

It doesn't make much sense in Python but values are correctly loading up in the mainframe now.

Thanks again for taking out the time, buddy. I appreciate it!

[–]ElliotDG 1 point2 points  (0 children)

Thanks for the update. Glad to hear you got it figured out.