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

Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

686


What is the difference between comp and comp-3?

704


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

721


Name the divisions, which are available in a cobol program?

686


What are all the divisions of a COBOL program?

667






What are the pertinent COBOL commands?

2626


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


What is the difference between comp and comp-3 usage?

681


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

661


What is an in line perform? When would you use it? Anything else you wish to say about it.

649


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

714


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2061


Which is not true about evaluate statement

1596


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1962


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10637