What is COMP SYNC?

Answer Posted / deepak goyal

Causes the item to be aligned on natural boundaries. Can be
SYNCHRONIZED LEFT or RIGHT.
For binary data items, the address resolution is faster if
they are located at word boundaries in the memory. For
example, on main frame the memory word size is 4 bytes.
This means that each word will start from an address
divisible by 4. If my first variable is x(3) and next one
is S9(4) COMP, then if you do not specify the SYNC clause,
S9(4) COMP will start from byte 3 ( assuming that it starts
from 0). If you specify SYNC, then the binary data item
will start from address 4. You might see some wastage of
memory, but the access to this computational field is
faster.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol?

650


how do you reference the ksds vsam file formats from cobol programs

652


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1763


how do you reference the variable unblock file formats from cobol programs

741


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2656






What are the different data types in cobol?

786


How many sections are there in data division in COBOL?

676


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

709


What is redefines clause in COBOL?

844


What is a scope terminator give example?

652


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

652


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1866


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718


State the various causes of s0c1, s0c5 and s0c7.

656


How do you define a variable of comp-1 and comp-2?

699