Page 1 of 1

Declare an "Occurs Depending On" (ODO) under redefines.

Posted: Mon Sep 21, 2015 3:06 pm
by Sandy
Hi,

Can anyone of you please advise me on if I can use ODO under a redefined data item? I got the following error:

Code: Select all

IGYDS1169-S "REDEFINES" subject "WS-USER-TABLE" contained an "OCCURS DEPENDING ON" clause or was variable-length. The "REDEFINES" clause was discarded. 
Thanks!

Re: Declare an "Occurs Depending On" (ODO) under redefines.

Posted: Mon Sep 21, 2015 3:41 pm
by William Collins
As the message suggests, not directly. It was always an IBM Language Extension to COBOL that allowed this in the past, but, I think with the arrival of Enterprise COBOL, it was removed.

You need a code change (I guess this is your old programs).

If you paste and example of what is causing the problem, we can illustrate the fix.