what is sync clause?

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


Please Help Members By Posting Answers For Below Questions

)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1516


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1772


what is the difference between COBOL2 AND COBOL390?

2443


How do we get current date from system with century in COBOL?

792


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2047






Why is it necessary that file needs to be opened in I-O mode for REWRITE?

736


How you can characterize tables in cobol?

708


Can you please let me know the centre name of INS certification in Kolkata.

1708


what is search and searchall?what is the diffrence between them?give an best example?

5537


HOw can I get the negative sign while deduct high value from low value

1780


how do you reference the variable unblock file formats from cobol programs

735


Write some characteristics of cobol as means of business language.

611


How do you define a variable of comp-1 and comp-2?

697


Explain how to differentiate call by context by comparing it to other calls?

679


What is the difference between PIC 9.99 and 9v99 in COBOL?

727