IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

comp sync word boundary


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pradeep

New User


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

PostPosted: Fri Mar 19, 2004 7:09 pm
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
franclin

New User


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

PostPosted: Mon Mar 22, 2004 8:12 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Sections: need one appearance of cer... DFSORT/ICETOOL 4
No new posts How to add 2 digits to COMP-3 file? DFSORT/ICETOOL 11
No new posts Unable to display comp variable COBOL Programming 4
No new posts Sync logic between VSAM files and DB2... COBOL Programming 9
This topic is locked: you cannot edit posts or make replies. SORT the records based on the second ... SYNCSORT 1
Search our Forums:

Back to Top