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

What are the functions of syncronization clause & comp.


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts To search DB2 table based on Conditio... DB2 1
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts SQLCODE = -122 while using the scalar... DB2 4
Search our Forums:

Back to Top