IBM MainFrame Question:

Download Job Interview Questions and Answers PDF

What is difference between comp and comp-3?

IBM MainFrame Interview Question
IBM MainFrame Interview Question

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 Interview Questions And Answers PDF

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?