what is sync clause?
Answers were Sorted based on User's Feedback
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 |
Answer / raghu
it is used for faster acess bcoz the data item stored in word boundaires.
Is This Answer Correct ? | 5 Yes | 1 No |
In COBOL "BEFORE" advancing is there or not ?
What is 88 level used for ?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Difference between next and continue clause
how do you reference the printer file formats from cobol programs
when SE37 SB37 and sd37 occurs how to increase the volume , primary quantity and secondary quantity?
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
What is the Purpose of POINTER Phrase in STRING command
In the JCL, how do you define the files referred to in a subroutine ?
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 ?
What is the use of LINKAGE SECTION?
What are the various section in data division and briefly explain them.