Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unpacking COBOL file in ABAP

Former Member

I have a requirement to unpack the Comp-3 decimal format COBOL file in ABAP. Can someone please let me know if it is possible? If yes, how?

3 REPLIES 3

Former Member
0 Kudos

Any leads?

larshp
Active Contributor
0 Kudos

I recently did it the other way around, integer to comp-3, see the code here https://gist.github.com/larshp/62fa3070d506f39cea33722d1efa2d7b

It should work just assigning the hex value to the packed number

0 Kudos

Hi Lars Hvam san

I’m looking to convert cobol zoned data to hexa in SAP Abap. Could you please gudie me how to do in coding.


For example

I have input decimal : -1234

for that I want to get hex value F1F2F3D4

and EBCDIC value 123M.
https://www.mainframebug.com/tuts/COBOL/module5/Top9_Packed_Decimal_and_Zoned_Decimal.php

Thanks and Regards

Shan