What is difference between com and com3? Eg. s9(4) so what
is the memory it will occupy com and com3.

Answer Posted / rekha

comp | comp-3

___________________________|__________________________________1>it
will store the data | it will store the data in PACKED in
BINARY FORMAT | DECIMAL FORMAT
2>s9(1)-s9(4) --> 2byts | s9(n)
s9(5)-s9(9) --> 4bytes | if n --> even occupies (n/2)+1b
s9(10-s9(18) -->8bytes | if n --> odd occupies (n+1)/2b
3> it will occupies the | it will occupy less memory
memory based on the range |
____________________________________________________________ex
- s9(4) occupies 2bytes for comp
s9(4) occupies 3bytes for comp-3

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a scope terminator give example?

657


Write a program to explain size error.

677


A table has two indexes defined. Which one will be used by the SEARCH?

759


What is amode(31)

724


Can you please let me know the centre name of INS certification in Kolkata.

1715






I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10610


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2105


How can you get the ksds file records into your cobol program?

644


Discuss about changing dataset name in proc.

761


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


What is the difference between binary search and sequential search?

641


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

644


How to remove 2 duplicate records and copy only one using job control language?

753


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897