Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
comp sync word boundary

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    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

franclin

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Sync sort - Transpose TS70363 SYNCSORT 5 Tue Jun 28, 2016 3:18 am
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us