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
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
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.
what is the difference between COBOL2 AND COBOL390?
How do we get current date from system with century in COBOL?
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.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How you can characterize tables in cobol?
Can you please let me know the centre name of INS certification in Kolkata.
what is search and searchall?what is the diffrence between them?give an best example?
HOw can I get the negative sign while deduct high value from low value
how do you reference the variable unblock file formats from cobol programs
Write some characteristics of cobol as means of business language.
How do you define a variable of comp-1 and comp-2?
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between PIC 9.99 and 9v99 in COBOL?