Problem with cobol.bdw_iter
Simple handling of numerous data file formats, even COBOL EBCDIC.
Brought to you by:
slott56
Example code for 10.1.8. Low-Level Split Processing contains multiple syntax errors.
After correcting syntax errors (stRingray, : @ EOL, missing block-indent), an error is thrown by stingray.cobol.bdw_iter()
File "generic_splitter.py", line 12, in <module>
for group, group_iter in batches:
File "/Users/slott/Documents/Projects/Stingray-4.4/stingray/cobol/init.py", line 853, in bdw_iter
NameError: global name 'data' is not defined
rdw_iter() appears to work properly
should be
yield bdw+block_data
Updated the bdw_iter() method of the cobol.RECFM_VB class as suggested in the bug report.
Finally updated the GIT repository, which was still stuck at 4.4.4. version.
Clearly, a test case is missing to cover this.
Last edit: Steven F. Lott 2015-02-19