pradeep
New User
Joined: 31 Jan 2004 Posts: 10 Location: Surandai,India
|
|
|
|
dear sir,
I am having doubt on word boundary,
what is meany by word boundary?
What is its use?
give an example for this.
if i declare
comp s9(4) sync.
comp-3 s9(5)
How will it allocate?
Advanced thanks for ur reply. |
|
franclin
New User
Joined: 23 May 2003 Posts: 11 Location: Chennai, India
|
|
|
|
The word boundary is used for store the computational clause variables with sync option,
that is all sync class variables stores start from the word boundary,it will increase the speed of access time,
comp s9(4) sync. -it takes 4 bytes (one word)
comp-3 s9(5) - it takes 3 byte.
EX.
01 group.
05 field1 pic x(2). - it takes 2 byte from the first word
bounary, next 2 bytes are free
05 field2 pic s9(4) comp sync.- it start from next word & takes 2
bytes
05 field3 pic 9. -it takes next one byte from
second word boundary
05 field5 pic s9(3) comp sync.- it starts from the next word
boundary ,means start from
third word boundary.
REGARDS,
Francis Suman.S |
|