What is the difference between comp and comp-3 usage?
Explain other COBOL usage?s.

Answer Posted / sultana

Usage Clause :COMP
Binary representation of data item.
PIC clause can contain S and 9 only.
S9(01) – S9(04) Half word.
S9(05) – S9(09) Full word.
S9(10) - S9(18) Double word.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different rules for performing sort operation?

770


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.

1125


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2142


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

751


What is the difference between perform … with test after and perform … with test before?

895






Explain how to differentiate call by context by comparing it to other calls?

695


Define static linking and dynamic linking.

675


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2667


State the various causes of s0c1, s0c5 and s0c7.

667


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6849


What is report-item in COBOL?

719


What is the difference between comp and comp-3?

704


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

691


Write a program to enter and display the names of students in a class using the occurs clause.

661


What is the usage of comp fields in cobol?

665