what is sync clause?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / raghu
it is used for faster acess bcoz the data item stored in word boundaires.
| Is This Answer Correct ? | 5 Yes | 1 No |
Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?
What is difference between static and dynamic call in cobol?
how can i see junk values in dclgen or in hostvariable of comp ?
How you can delete a record from a ps file in cobol?
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?
What care has to be taken to force program to execute above 16 Meg line?
what is the difference between Normal vaiable and comp variable.
What is the difference between subscript and index?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
can we use full outer join with cursors declared in cobol program?
When can the USING phrase be included in the call statement ?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..