Skip to content

Support for decimal scaling PV #669

@rjethure

Description

@rjethure

Describe the bug

Cobrix should support the decimal scaling of character PV in copybook, getting error for S9(7)PPPV.
For usage click here

Expected behavior

It should parse the copybook file. Without below error:

ERROR ANTLRParser: Syntax error in the copybook: Line  no viable alternative at input XXXX:XX 'S9(7)PPPV'
Caused by: za.co.absa.cobrix.cobol.parser.exceptions.SyntaxErrorException: Syntax error in the copybook at line XXXX: Invalid input 'V' at position XXXX:XX

Copybook (if possible)

 05  Parent-Column                  COMP-3.              
     07  Child-1   PIC S9V99.                           
     07  Child-2   PIC S9(7)PPPV.                       
     07  Child-3   PIC S9V99.                           
     07  Child-4   PIC S9(7)PPPV.                       
     07  Child-5   PIC S9(7)PPPV.                       
     07  Child-6   PIC S9(7)PPPV.                       
     07  Child-7   PIC S9(7)PPPV.                       
     07  Child-8   PIC S999.                            
     07  Child-9   PIC S9(11).                          

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions