Answer Posted / naveen
sync clause is specified with comp,comp-1 and comp-2items.these items are expected to start at half/full/double
word boundaries for faster address resolution.sync clause does
this but it may introduce slack bytes before the binary item.
exemple
01 ws-test.
10 ws-var1 pic x(02).
10 ws-var2 pic s9(6) comp sync.
assumes ws-test starts at relative location 0 in the memory,ws-var1 occupies zero and first byte .ws-var2 is expected to start at second byte. as the comp item in the example needs one word and it is coded with sync clause,it will start only at the next word boundary that is 4th byte.so this introduces two slack bytes between ws-var1 and
ws-var2.
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
how to refer the data field?
IF I mention stop run in CICS what happens?
What are the different open modes available in cobol?
what is the difference between COBOL2 AND COBOL390?
What are literals?
How do u write test cases?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Are you comfortable in cobol or jcl?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Why would you use find and get rather than to obtain?
What is the difference between binary search and sequential search?
How do you reference the fixed block file formats from cobol programs
What is a scope terminator give example?
In which area will you utilize 88 level items in cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?