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

