Skip to main content

Hi All,
We are using Nested ODO clause on our copybook to use Generate JSON. But the child level arrays are getting created only on the basis of last occurrence of Parent level. We will attach the copybook and source file as soon as the case was picked up.
Copybook snippet:
* 03 COMPLIANCE_SCREENING OCCURS 0 TO 15 TIMES DEPENDING ON
* CS-COUNT.
* 05 _CATEGORY pic x(100). *> string
* 05 _CURRENCY pic x(3). *> string
* 05 CATEGORY_TOTAL pic x(20). *> string
* 05 ITEMS OCCURS 0 TO 5000 times DEPENDING ON
* CS-ITEMS-COUNT.
* 07 COUNTERPARTY_NAME pic x(255). *> string
* 07 COUNTERPARTY_TOTAL pic x(20). *> string
* 05 DATA_SOURCES OCCURS 0 TO 100 TIMES DEPENDING ON
* CS-DS-COUNT.
* 07 FILE_NAME pic x(256). *> string
* 07 SHEET_NAME pic x(100). *> string
* 07 COLUMN_ADDRESS pic x(10). *> string

Here ITEMS and DATA_SOURCES are always have the count of last count value of COMPLIANCE_SCREENING.

Is there any way we can hold the variable array of child for all the parent object. 

Could you guys please help here!


#EnterpriseDeveloper
#EnterpriseSuite
#EnterpriseServer

Hi All,
We are using Nested ODO clause on our copybook to use Generate JSON. But the child level arrays are getting created only on the basis of last occurrence of Parent level. We will attach the copybook and source file as soon as the case was picked up.
Copybook snippet:
* 03 COMPLIANCE_SCREENING OCCURS 0 TO 15 TIMES DEPENDING ON
* CS-COUNT.
* 05 _CATEGORY pic x(100). *> string
* 05 _CURRENCY pic x(3). *> string
* 05 CATEGORY_TOTAL pic x(20). *> string
* 05 ITEMS OCCURS 0 TO 5000 times DEPENDING ON
* CS-ITEMS-COUNT.
* 07 COUNTERPARTY_NAME pic x(255). *> string
* 07 COUNTERPARTY_TOTAL pic x(20). *> string
* 05 DATA_SOURCES OCCURS 0 TO 100 TIMES DEPENDING ON
* CS-DS-COUNT.
* 07 FILE_NAME pic x(256). *> string
* 07 SHEET_NAME pic x(100). *> string
* 07 COLUMN_ADDRESS pic x(10). *> string

Here ITEMS and DATA_SOURCES are always have the count of last count value of COMPLIANCE_SCREENING.

Is there any way we can hold the variable array of child for all the parent object. 

Could you guys please help here!


#EnterpriseDeveloper
#EnterpriseSuite
#EnterpriseServer

Hi,
I would like to check, you write "We will attach the copybook and source file as soon as the case was picked up.", have you raised a support case for this question also, can you confirm, this will help avoid duplication of effort.

Regards,
Kim


Hi,
I would like to check, you write "We will attach the copybook and source file as soon as the case was picked up.", have you raised a support case for this question also, can you confirm, this will help avoid duplication of effort.

Regards,
Kim

Hi Kim,

We have opened the case and after that we have posted here as per the suggestion from MF support person.

Thanks,

Ayyappan M


Hi Kim,

We have opened the case and after that we have posted here as per the suggestion from MF support person.

Thanks,

Ayyappan M

Hi Ayyappan,

Can I request you to direct message me the support case number, I would like to understand what has been done so far, get the history.

Regards,
Kim


Hi Kim,

We have opened the case and after that we have posted here as per the suggestion from MF support person.

Thanks,

Ayyappan M

Received your message and case number, thanks.
Question, do you use the ODOSLIDE Compiler directive currently, if not can you test with that and advise if that changes the behaviour
Documentation: https://www.microfocus.com/documentation/enterprise-developer/ed90/ED-VS2022/HRCDRHCDIR4N.html
Also check: https://www.microfocus.com/documentation/enterprise-developer/ed90/ED-VS2022/GUID-B4C6C8B8-6C6A-4B51-B593-BB3972AE9E3C.html  in case this affects your scenario.


Received your message and case number, thanks.
Question, do you use the ODOSLIDE Compiler directive currently, if not can you test with that and advise if that changes the behaviour
Documentation: https://www.microfocus.com/documentation/enterprise-developer/ed90/ED-VS2022/HRCDRHCDIR4N.html
Also check: https://www.microfocus.com/documentation/enterprise-developer/ed90/ED-VS2022/GUID-B4C6C8B8-6C6A-4B51-B593-BB3972AE9E3C.html  in case this affects your scenario.

Hi Kim,

Thanks for your update. I'm using ODOSLIDE compiler directive but using "OCCURS DEPENDING ON". I will try to use "OCCURS COUNT IN" and let you know about the results.

Thanks,

Ayyappan M


Hi Kim,

Thanks for your update. I'm using ODOSLIDE compiler directive but using "OCCURS DEPENDING ON". I will try to use "OCCURS COUNT IN" and let you know about the results.

Thanks,

Ayyappan M

Ok thanks, please let us know of the result.