neopragma/cobol-unit-test

Invalid literal continuation in generated TESTPRG file

Closed this issue · 1 comments

After changing record areas in WORKING-STORAGE to 80 characters fixed size for mainframe compatibility, on Linux the precompiler produces invalid (and unnecessary) literal continuations such as:

       MOVE 'IT RETURNS BUZZ FOR THE NUMBER 10 (DIVISIBLE BY 5)'
  -    '     

Changing file references in ZUTZCPC from LINE SEQUENTIAL with variable-length records delimited by a newline to SEQUENTIAL, expecting fixed-length records, caused the program to process empty records (null or LOW-VALUES) as null values, and it copied those lines to the test source file because they weren't SPACES. Now input records that are blank lines (only a newline) are filled with SPACES so the code won't be confused.