How to Convert Numeric to COMP-3(Packed Decimal)

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I am creating a copybook file in c# and sent to mainframes.
The format type in Mainframe is S9(07) COMP-3 - 4 bytes
I have a numeric value of 2011005 .
I want to convert the numeric value to COMP-3 ( Packed decimal).
I have tried all methods for the past 2 weeks.. but i am not able to send the value in correct format..
I tried EBCDIC format also can anyone please help me in solving this.
It would be very helpfull for me



View the full article
 
Back
Top