What is COMP SYNC?
Answers were Sorted based on User's Feedback
Answer / deepak goyal
Causes the item to be aligned on natural boundaries. Can be
SYNCHRONIZED LEFT or RIGHT.
For binary data items, the address resolution is faster if
they are located at word boundaries in the memory. For
example, on main frame the memory word size is 4 bytes.
This means that each word will start from an address
divisible by 4. If my first variable is x(3) and next one
is S9(4) COMP, then if you do not specify the SYNC clause,
S9(4) COMP will start from byte 3 ( assuming that it starts
from 0). If you specify SYNC, then the binary data item
will start from address 4. You might see some wastage of
memory, but the access to this computational field is
faster.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / padmanabha naidu.p
it will star with wordboundaries.while you are using sync
clause you wiil get slack bytes.
| Is This Answer Correct ? | 10 Yes | 4 No |
What does the IS NUMERIC clause establish ?
consider the following two IF statements: IF X AND NOT Y MOVE A TO B IF Z=1 OR 9 MOVE A TO B select one of the following data divusion entries which gives identical results for both the above IF statements a.01 Z PIC 9 88 X VALUE 1.9 88 Y VALUE 0.2 THRU 8 b.01 Z PIC 9 88 X VALUE 0.2 THRU 8 Y VALUE 1.9 c.01 Z PIC 9 88 X VALUE 1.9 88 NOT-Y VALUE 0.2 THRU 1.9 d.none of yhe above
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
Under which scenario you would go for a static call as opposed to dynamic call?
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
SIGN TRAILING SEPARATE field occupy ?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
why we are using set in searchall?
01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?
Mention the guidelines to write a structured cobol program?