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

how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773


explain sorting techniques in cobol program?

692


how do you reference the rrds file formats from cobol programs

802


What guidelines should be followed to write a structured cobol prgm?

673






Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2060


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


What do you understand by psb and acb?

668


Explain how to differentiate call by context by comparing it to other calls?

689


What is redefines clause in COBOL?

851


What is the problem of ordered sequential files access?

704


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.

2014


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

712


Discuss about changing dataset name in proc.

765


How do we get current date from system with century in COBOL?

807