Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 read a 100 record from a file through cobol?

2 Answers  


Can the OCCURS clause be at the 01 level?

2 Answers  


what is ASRA, AEY9?

2 Answers   IBM,


i want to store 20 digits . h will u do it in cobol ?

4 Answers   TCS,


Can you please let me know the centre name of INS certification in Kolkata.

0 Answers  


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


Difference between file status codes 02 and 22.... since both are for duplicate key detection.

1 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


When and how can we use index & subscript ?

2 Answers  


What is the usage of comp fields in cobol?

0 Answers  


What is the difference between NEXT SENTENCE and CONTINUE?

2 Answers   Mphasis,


COMP field occupy ?

2 Answers  


Categories