cobrix
cobrix copied to clipboard
BBBB in copybook
Background
I am trying to read a cool playbook that has "BBBB".
Looks something like this.
Version of spark - 3.4.1 Scala - 2.12
Cobol_parser - 2.12:2.6.9 Spark-cool- 2.12.:2.6.9
Question
Is it possible to handle such "BBBB" defines? Has anyone come across this before. I currently get syntax error with Invalid input "BBBB" at position ...
Hi @sou-joshi, we haven't encountered 'B' in field PIC definitions. Could you send some info or reference to documentation on how it works, please. I couldn't find it easily.
Thabks for your response @yruslan . Well,not sure what it means. I couldn't find anything either. Tried to remove it. I get duplicate field error
Hi, sorry, I've missed the reply. The duplicate error happens when a copybook contains a field having the same name on the same level. Spark does not duplicate names, so the way to workaround it is to rename one of duplicate fields.