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

Translate COMP-5 #31

Open
broussea1901 opened this issue Mar 3, 2017 · 6 comments
Open

Translate COMP-5 #31

broussea1901 opened this issue Mar 3, 2017 · 6 comments
Assignees

Comments

@broussea1901
Copy link

broussea1901 commented Mar 3, 2017

Hi,
We are trying to translate a COMP-5 S9(10) field.
COMP-5 does not seems do be managed in the SERDE, shall we use COMP-4 instead or is there another option ?
Thanks

@tejasbharambe
Copy link

tejasbharambe commented Mar 3, 2017 via email

@broussea1901
Copy link
Author

Comp-4 only returns null values.
Anyone has successfully convert a Comp-5 using comp-4 layout ?
Thanks

@rbheemana
Copy link
Owner

@broussea1901 Is it possible for you to provide sample file with comp-5 field and also explain how to deserialize the raw comp-5 bytes. I will try to implement the method.

@rbheemana
Copy link
Owner

@danrosenfe Do you have any input data with COMP-5 fields?

@danrosenfe
Copy link

danrosenfe commented May 6, 2019

Hello, @rbheemana!

Sorry for the delay to reply.

We have created a file and book with the purpose of exemplifying the main types of numerical declaration of cobol, including comp-5. There are examples of comp, comp-1, comp-2, comp3, and raw statement.

In this documentation we obtain the ranges in value of COMP-5 data item, so there are 6 variables for this type of compression.

Please let me know if this consolidated example is sufficient or if you prefer something separate.

Print screen mainframe -> book and file

FILE

BOOK


@rbheemana
Copy link
Owner

@danrosenfe Please let me know if it is VB or FB file if FB what is the length of record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants