Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
comp sync word boundary

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
pradeep

New User


Joined: 31 Jan 2004
Posts: 10
Location: Surandai,India

PostPosted: Fri Mar 19, 2004 7:09 pm    Post subject: comp sync word boundary
Reply with quote

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. icon_redface.gif
Back to top
View user's profile Send private message
References
PostPosted: Fri Mar 19, 2004 7:09 pm    Post subject: Re: comp sync word boundary Reply with quote

francis suman

New User


Joined: 23 May 2003
Posts: 11
Location: Chennai, India

PostPosted: Mon Mar 22, 2004 8:12 am    Post subject:
Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1