Menu

error: continuation character expected

2024-04-03
2024-04-03
  • Cathy Welsh

    Cathy Welsh - 2024-04-03

    I am compiling my MF Cobol Programs that do not give me this error when I compile them on MF COBOL Visual COBOL version PTI=Micro Focus Visual COBOL Development Hub 5.0 - Patch Update 07.

    I have a copy Library LIB/COMPFI.FN which is a Filename Definition.
    I have included the contents below:

               05 COMP-FIL-ID.                                              
                  10 FILLER                          PIC X(4) VALUE "MST/". 
                  10 COMP-FIL-PREFIX                 PIC XX VALUE "??".     
                  10 FILLER                          PIC X(4) VALUE "COMP". 
                  10 FILLER                          PIC X(4) VALUE SPACES. 
               05 FILLER                             PIC 999  VALUE 052.    
    

    This is included in an 01-level item in the Working Storage section called Filename-Table-1.
    the last item that has a value of 052, is because any of my files on a system that are COMPANY code dependent, the company code is passed in and a separate program called FILSET is run that looks at this last value of 052, and knows that in the COMP-FIL-ID, position 5 you are to replace with the 2 digit Company code.

    This logic has been used since the inception of CDMS software which was initially based on REAL WORLD accounting package in 1982. This compiled fine back on the day on COB-77 on the PDP-11, COBOL-85 on the VMS 5.1, and MF Cobol version 3.259, from circa 1990, and still used on any SCO platform, and MF Visual Cobol 5 Update 7. It compiles just fine.

    I have attached the files COMPFI.FN which is stored in a directory called LIB and the FILSET.SUB program that processes these company code specific files.

     

    Last edit: Simon Sobisch 2024-04-03
    • Simon Sobisch

      Simon Sobisch - 2024-04-03

      The context is missing. Can you please produce a complete listing with -T bad.lst and upload that (potentially with a minimized program) and/or provide the full compilation line + output?

       

Anonymous
Anonymous

Add attachments
Cancel