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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between PIC 9.99 and PIC9v99?

1339


How you can read the file from bottom?

1158


What is the problem of ordered sequential files access?

1164


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1117


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1436


What rules are followed by the search verb.

1118


how can i see junk values in dclgen or in hostvariable of comp ?

3003


What is comp-1 and comp-2?

1230


how to move the records from file to array table. give with code example

2677


How to know whether the module is dynamical or statistical?

1144


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1349


Why occurs cannot be used in 01 level in COBOL?

1162


how do you reference the variable unblock file formats from cobol programs

1328


What are the different open modes available in cobol?

1194


What is a SSRANGE and NOSSRANGE?

1471