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
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the difference between comp and comp-3?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Name the divisions, which are available in a cobol program?
What are all the divisions of a COBOL program?
What are the pertinent COBOL commands?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between comp and comp-3 usage?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
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.
Which is not true about evaluate statement
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
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 ......