Joined: 31 Jan 2008 Posts: 148 Location: Chennai, India
Diaplacemrent is nothing but the number of bytes it traversed to reach that value
For example you have declared a table as:
01 tab ,
02 v1 pic 99 occurs 10 times indexed by i1.
If you try to access v1(2) means , internally the displacement will be 4 bytes as each will allocate 2 bytes.But it doesn't matter how internally it will takes just using indexed is more efficient and no need to declare the variable
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
Where can I get hold of documentation that explains these kind of neat stuff like TGT's and so on? I have been a COBOL programmer for some time and would like to take my skills to the next level but have difficulty in finding the applicable information. Thanks in advance for your reply.