cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to read cobol binary file

Pkrishna9494
New Contributor

Input :

ืฆื ืงื ื ืคืงื ื ืฉื ืขืขืก โ€“Pฦ’\ @ @@@@ | ื ื ืฅ@@@@@@@@@@@@@@@@@@@@@@@@@@@2 <ื ื ื ื ื @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@0 yD\  @@@@ืกื ื ืกืขืข

 output:

" 00000000000000000000000000000000000607.","0047026315"," 00000000000000000000000000000000000001."," 0000000000000000000000071341.3800000000","0","0"," 0000000000000000000000000000.0000000000",""," 000.","","0","0"," 0000000000000000000000000000.0000000000"," 00000000000000000000000000000000000005.",""," 00000000000000000000000000000000032003."," 00000000000000000000000000000000000000."," 00000000000000000000000000000000000000.",""," 00000000000000000000000000000000000000.",""," 00000000000000000000000000000001240301."," 0000000000000000000000000653.2300000000"," 00000000000000000000000000000000000000."," 00000000000000000000000000000000000000.","","10","01","22",""

5 REPLIES 5

koryknick
Employee
Employee

@Pkrishna9494 - you can ask your CSM to enable the Cobol Copybook snap pack.

can you possible  to read through python script 

Pkrishna9494
New Contributor

it's fixed width format and character set EDCDIC to UTF-8 through python script, could you please help me out 

it's fixed width format and character set EBCDIC to UTF-8 through python script, could you please help me out