Menu

Continuation character expected

Anonymous
2016-02-10
2016-02-11
  • Anonymous

    Anonymous - 2016-02-10

    help i have symilar code in the same file that is not trigering the error.
    i am getting the following error.
    line 111 ends pos-72
    line 112 starts pos-7
    12345678
    109 01 WS-CRT-LINES.
    110 03 WS-TOP-LNE2.
    111 05 WS-TCR PIC X(80) VALUE "┌──────────────────────────
    112 -"───────────────────────────────────────────────────┐".
    113
    114 03 WS-TP-LINE2 REDEFINES WS-TOP-LNE2.
    gnuCOBOL 2.0
    compiled 2.3.2016
    windows 10 32bit
    D:\gnucobol\bin\cobc.EXE -x -o ..\build-Dev\ttmenu\ttmenu.exe -std=cobol2002 -debug -IE:\TruckTrack\copybooks -IE:\TruckTrack\copybooks\fde ttmenu.cbl
    ttmenu.cbl (114): Error: Continuation character expected
    ttmenu.cbl (201): Error: Continuation character expected

     

    Last edit: Anonymous 2016-02-10
  • Simon Sobisch

    Simon Sobisch - 2016-02-10

    Hi Anon, just some guessing:

    • line 112 may end after program-text area
    • the file may be saved in UTF-8 or other multi-byte encodings

    And a suggestion what to do:

    • add -W to your command line and investigate the additional hints cobc gives you
    • if this doesn't help you: create a minimal sample and add it as attachment

    What is the exact output from cobc -V?

    Simon

    BTW: please register/login, thank you.

     
  • Bill Woodger

    Bill Woodger - 2016-02-11

    If at leas the last two characters of line 112 were truncated, that's the sort of error message you'd get, so I second Simon's point, but can't see from what you've posted how it would happen.

    I dislike trying to count lots of identical characters, so I'd do the defintion something like this:

    05 WS-TCR 
        10  PIC X VALUE "┌"
        10  PIC X(something) VALUE ALL "_".
        10  PIC X VALUE "┐"
        10  PIC X(if necessary to get to 80) VALUE SPACE.
    

    I'd space it more neatly, and probably use FILLER, but it's only an example.

    I avoid use of continuations except for fun.

     
    • Anonymous

      Anonymous - 2016-02-11

      hello
      used the -w and then the -V and it did not give any other hints that were usefull.
      i did use your suggestion and so far it worked.
      Thank you

       
      • Simon Sobisch

        Simon Sobisch - 2016-02-11

        As I've wrote before: Please add the not working source as attachement as I want to review this issue.

        Thank you,
        Simon

         

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.