IBM MainFrame Question:

What is difference between comp and comp-3?

Tweet Share WhatsApp

Answer:

Comp is binary.its the type how system stores ur data.
pic s9(1)-->pics9(4) --occupies 2bytes
pic s9(5)---pic s9(8) ----4 bytes
pic s9(9)---pics9(18)-----8 bytes

comp-3 is for packed decimal data where each character occupies half byte and sign is stored in last nibble.

Download IBM MainFrame PDF Read All 28 IBM MainFrame Questions
Previous QuestionNext Question
What is use of linkage section?How do define Dynamic array in COBOL how do u define single dimensional array and multidimensional array in your COBOL?