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
What is the difference between PIC 9.99 and PIC9v99?
How you can read the file from bottom?
What is the problem of ordered sequential files access?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What rules are followed by the search verb.
how can i see junk values in dclgen or in hostvariable of comp ?
What is comp-1 and comp-2?
how to move the records from file to array table. give with code example
How to know whether the module is dynamical or statistical?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Why occurs cannot be used in 01 level in COBOL?
how do you reference the variable unblock file formats from cobol programs
What are the different open modes available in cobol?
What is a SSRANGE and NOSSRANGE?