what is sync clause?

Answers were Sorted based on User's Feedback



what is sync clause?..

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

what is sync clause?..

Answer / raghu

it is used for faster acess bcoz the data item stored in word boundaires.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?

1 Answers  


How do you define a table/array in COBOL?

5 Answers   Hexaware,


2)Where the Plan is located in CICS-DB2?

1 Answers   IBM,


What are decleratives in COBOL ?

1 Answers   Xansa,


Why IBM?

1 Answers   IBM,






what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


Explain how you can characterize tables in cobol?

0 Answers  


Why we need to use redefine clause when we can define the variable seperately... what is actual need....

5 Answers   Accenture,


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 Answers  


I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."

1 Answers  


what is MSGLEVEL?

1 Answers   IBM,


Categories