Menu

#21 Problem with cobol.bdw_iter

Release 4.4
closed
None
2015-02-19
2015-02-17
RHarris
No

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

Discussion

  • RHarris

    RHarris - 2015-02-18
            yield bdw+data
    

    should be
    yield bdw+block_data

     
  • Steven F. Lott

    Steven F. Lott - 2015-02-19
    • status: open --> closed
     
  • Steven F. Lott

    Steven F. Lott - 2015-02-19

    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

Log in to post a comment.