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
What is a scope terminator give example?
Write a program to explain size error.
A table has two indexes defined. Which one will be used by the SEARCH?
What is amode(31)
Can you please let me know the centre name of INS certification in Kolkata.
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
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 ......
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
How can you get the ksds file records into your cobol program?
Discuss about changing dataset name in proc.
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...)
What is the difference between binary search and sequential search?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How to remove 2 duplicate records and copy only one using job control language?
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?