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

In COBOL "BEFORE" advancing is there or not ?

3 Answers  


What is 88 level used for ?

2 Answers  


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

0 Answers  


Difference between next and continue clause

4 Answers   Kanbay,


how do you reference the printer file formats from cobol programs

0 Answers  






when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?

1 Answers   Hewitt,


which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks

1 Answers  


What is the Purpose of POINTER Phrase in STRING command

3 Answers  


In the JCL, how do you define the files referred to in a subroutine ?

2 Answers  


If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?

8 Answers   UST,


What is the use of LINKAGE SECTION?

1 Answers  


What are the various section in data division and briefly explain them.

0 Answers  


Categories