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
 
What are the functions of syncronization clause & comp.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
asish2006
Currently Banned

New User


Joined: 02 Nov 2006
Posts: 4
Location: India

PostPosted: Thu Nov 23, 2006 5:12 pm    Post subject: What are the functions of syncronization clause & comp.
Reply with quote

Someone please tell me what are the functions of syncronization clause and
comp, comp-1,comp-2& comp-3 in cobol.
Back to top
View user's profile Send private message

sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Thu Nov 23, 2006 5:34 pm    Post subject:
Reply with quote

Hi

Can please make Search in this forum, there are so many info available for your questions.

I'm giving here short description about the things you mentioned.

COMPUTATIONAL DATA-ITEMS:
In general, making better use of memory at the time internal representation of calculation or computation we use COMP Variables since they occupy less space depends upon the comp type we use.

COMP: It's a binary storage format, usuall occupy n/2 bytes.

COMP-1: It's internal Single Precision Floating data-item, and it's 4 bytes long

COMP-2:It's internal Double Precision Floating data-item, and it's 8 bytes long


COMP-3:It's Packed decimal storage format, and this is most efficient form of storage, it occupies n/2 + 1 bytes

There are so many info about COMP data-item , make a search.

SYCH Clause:
This is used to align the COMP field in a more specific boundary area such that to make Internal arithmetic operation more efficient.

SYNC Clause is used with COMP,COMP-1,COMP-2 items.

Hope above info are correct and helful to you.

Thanks
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm

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