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

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Sandy
Registered Member
Posts: 51
Joined: Sat Jun 15, 2013 1:07 pm

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

Post 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!
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

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

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”