Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBBB in copybook #657

Open
sou-joshi opened this issue Jan 29, 2024 · 3 comments
Open

BBBB in copybook #657

sou-joshi opened this issue Jan 29, 2024 · 3 comments
Labels
question Further information is requested

Comments

@sou-joshi
Copy link

Background

I am trying to read a cool playbook that has "BBBB".
Looks something like this.
20240129_221733.jpg

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 ...

@sou-joshi sou-joshi added the question Further information is requested label Jan 29, 2024
@yruslan
Copy link
Collaborator

yruslan commented Jan 29, 2024

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.

@sou-joshi
Copy link
Author

sou-joshi commented Jan 29, 2024

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

@yruslan
Copy link
Collaborator

yruslan commented Feb 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants