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 |
Why there is no questions in this column?
What is length is cobol?
If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
What are the divisions in a cobol program?
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
how to refer the data field?
what is the difference between Plan & package?
How To move a value to an array using move verb?
wht do u mean by (*,intrdr) wht is * used for ?
Can we use goto statement in inline_perform ?