How will 128 be saved in s9 (3) comp-3
How will 12 be saved in s9 (2) comp

Answer Posted / kavithachandrashekar

comp-3 is stored as (n+1)/2 where n is number of digits.Since here n is 3 for numeric 128,(3+1)/2=2 bytes.

12 8C here c represents positive(D for negative)

Comp is stored as n/2,where n is number of digits.Since n is 2 for numeric 12,(2)/2=1 byte(1/2 word)
12 is saved as 12.

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which Search verb is equivalent to PERFORM…VARYING?

681


Which is not true about evaluate statement

1567


How do you reference the fixed block file formats from cobol programs

701


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1111


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586






What is the Purpose of POINTER Phrase in STRING command in COBOL?

713


Name some of the examples of COBOl 11?

2676


What is the compute verb? How is it used?

653


what is the difference between COBOL2 AND COBOL390?

2450


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.

2005


In which area will you utilize 88 level items in cobol?

716


what is search and searchall?what is the diffrence between them?give an best example?

5540


Write the code implementing the perform … varying.

639


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

743


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1951