what is sync clause?

Answers were Sorted based on User's Feedback



what is sync clause?..

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

what is sync clause?..

Answer / raghu

it is used for faster acess bcoz the data item stored in word boundaires.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is file status 92?

3 Answers  


2)Where the Plan is located in CICS-DB2?

1 Answers   IBM,


how do you reference the printer file formats from cobol programs

0 Answers  


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,






can we use the two 01 level in file discription ?

6 Answers  


What is report-item in COBOL?

0 Answers   Arigo Infotech,


What is a subscript ?

3 Answers  


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


what happens if parmparameter passes zero bytes to the program

0 Answers   HSBC,


How can you pass values from COBOL program to non-COBOL programs?

2 Answers  


What is the Purpose of POINTER Phrase in STRING command in COBOL?

0 Answers   Winsol Solutions,


Categories