-
Notifications
You must be signed in to change notification settings - Fork 3
WIP: First Cut - this doesn't work yet - a work-in-progress. #1
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
Conversation
Doesn't work in Daffodil for lack of "V" textNumberPattern feature. Doesn't work in IBM DFDL for lack of binaryCalendarRep="packed" support.
|
Ok, to be clear, IBM DFDL has lots of working Cobol capability. What isn't working is my little example here yet. Presumably it can be made to work with a workaround to the issues blocking me. |
mbeckerle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet ready for prime time.
| IBM DFDL doesn't support binaryCalendarRep="packed" so we have to | ||
| hack around this using BCD, and surrounding things that create the | ||
| leading 0 nibble, and trailing "C" nibble which would exist for packed. | ||
| --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workaround isn't working-around yet. There may be a better way to do this.
|
@mbeckerle When IBM creates DFDL schema for COBOL, we auto-generate them from the COBOL copybook or program. There is no concept of a date/time data type in COBOL, and that kind of data normally would be represented as string or zoned decimal. We have never needed to generate binaryCalendarRep="packed". |
|
@mbeckerle Suggested default properties for COBOL ... as there is no date/time concept in COBOL, there is nothing declared for date/time. |
|
@mbeckerle Consider declaring simple types for all the COBOL PIC types. You can carry some properties on the simple types to avoid duplication. It also makes sense to a someone familiar with COBOL. Example: I can see if IBM can donate the full list of simple types. |
|
This got closed by accident. Should be reopened. |
update build.sbt and sbt version See #1 There are comments on improving this schema there. The PR was closed accidently, but is still accessible. This schema is a first cut at some Cobol from daffodil. It's not complete yet due to limitations in Daffodil.
Doesn't work in Daffodil for lack of "V" textNumberPattern feature.
Doesn't work in IBM DFDL for lack of binaryCalendarRep="packed" support.
Also needs dfdl:calendarTimeZone="UTC" because "" is not accepted - this will require changing the test logical data to have "+00:00" on the dates.