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
What are the cobol coding sheets?
What type of SDLC u followed? Why?
How do u write test cases?
Write a program that uses move corresponding.
What is Pic 9v99 Indicates in COBOL?
IF I mention stop run in CICS what happens?
How do you define a variable of comp-1 and comp-2?
) how do u code after getting data?
i want a program using by if, evaluate , string, unstring, perform, occurs?
explain sorting techniques in cobol program?
Explain how you can characterize tables in cobol?
How to remove 2 duplicate records and copy only one using job control language?
Write the code to count the sum of n natural numbers.
Write a cobol program making use of the redefine clause.
how do you reference the rrds file formats from cobol programs