I tried changing the size but its not working.
Here is how the Layout looks like for EBCDIC file. And the corresponding config file. Do you think anything wrong inmapping?
ebcdic string(2) A;
packed decimal(17,0) B;
signed big endian integer(2) C;
ebcdic string(19) D...
Thanks, I did those changes and printed them and here is the output. Does this help?
***>python cbl-data2.py athacct_dly_init.dat cbl_data.cfg
* Processing 0001 record...
hello - now after I upgraded the version to 2.7, it started working. But now its getting a different error. It has partially converted the first record and failing at 2nd record. I will try to debug it now but thought of sharing it with you all to see if any of you have faced such issues in past...
I am using version-2.6.6. Is it a limitation for version-2.6.6 and do I need to upgrade it to 2.7.6?
$>python
Python 2.6.6 (r266:84292, Nov 21 2013, 10:50:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys...
hello here is the full code, didn't get much help with above steps. It would be great if you can run the same code and debug it for me? Basically my requirement is to convert a EBCDIC file to an ASCII output and getting this issue. Let me know if you need any other info?
import sys, string...
hello, we are getting this issue with a Python Program. Anyone has any clue?
Traceback (most recent call last):
File "cbl_data.py", line 149, in ?
field_list = create_field_list('cbl_data.cfg')
File "cbl_data.py", line 35, in create_field_list
for line in open(config_file)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.