what is the advantage of sync class

Answer Posted / nagaraj ramamoorthy

The purpose of the SYNC clause (when it was introduced) was
to align the data names to the natural machine word
boundaries so that it will be efficient to retrieve data.
This was introduced when the processing speed was very slow
and system was built on word architecture. Modern systems
are quite fast and this does not make significant
difference.

It can be used to numeric and alphanumeric data items. you
can also specify how to align RIGHT/LEFT. if you do not
specify, complier will take the best one that is efficient.
It should be used with 01 and 77 levels and it should not
be used with group items, because compiler will add
bits/bytes in between group items so finding the exact size
will be difficult for the programmer.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


What type of SDLC u followed? Why?

1518


In COBOL programming, what is PERFORM? What is VARYING?

670


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

740


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

703






Explain what you understand by passing by value.

694


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

711


Why did you choose to work with ibm mainframe cobol programming?

627


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

683


What are literals?

628


Define static linking and dynamic linking.

660


how do you reference the ksds vsam file formats from cobol programs

664


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

656


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

2542


How do u write test cases?

1633