What exactly do refer to as "Implicit Redefine"?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Eshaan Awasthi
New Member
Posts: 1
Joined: Tue Jan 05, 2016 9:55 am

What exactly do refer to as "Implicit Redefine"?

Post by Eshaan Awasthi »

Hi,

What exactly do refer to as "Implicit Redefine"? Can anybody plaease explain it to me. Why do we really need it when we have a seperate REDEFINE (is it explicit?) clause in COBOL?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: What exactly do refer to as "Implicit Redefine"?

Post by Robert Sample »

When you code multiple 01 levels in an FD, each of them is referring to the same memory location (the buffer for that file). Hence the second, and subsequent, 01 levels implicitly redefine the first 01. This does not replace the REDEFINES verb.

[ Post made via iPhone ] Image
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.”