which is better comp or comp-3 in terms of memory
utilization?
Answer Posted / santy
COMP is better that COMP-3 in terms of memory utilization.
check out below examples.
COMP COMP-3
(in bytes) (in bytes)
S9(04) 2 3
S9(08) 4 5
S9(09) 4 5
S9(10) 8 6
S9(11) 8 6
S9(12) 8 7
S9(13) 8 7
S9(14) 8 8
hope it is useful.
Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
how do you reference the ksds vsam file formats from cobol programs
What guidelines should be followed to write a structured cobol prgm?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is amode(31)
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.
What is the difference between PIC 9.99 and PIC9v99?
How do get the result of your program directly on your pc?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are the pertinent COBOL commands?
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 ......
What is the difference between next sentence and continue in cobol programing 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?
What is rmode(24)
What is the problem of ordered sequential files access?
What are various search techniques in cobol? Explain.