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

State the various causes of s0c1, s0c5 and s0c7.

656


Can we redefine the field of x(200) to less than 200?

809


What are the various section in data division and briefly explain them.

684


Name the divisions, which are available in a cobol program?

675


How do get the result of your program directly on your pc?

1872






What is a SSRANGE and NOSSRANGE?

809


How arrays can be defined in COBOL?

658


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1772


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

1998


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

698


What is the use of intialize verb?

738


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

705


how to convert the recors form vsam file to db2 table tru file aid

2749


What are 77 levels used for?

650


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

704