How can we find out wether to declare the data items like
Integer, Char,Comp? If comp types how can we decide wether
it is Comp and Comp3.How it is?

Please Explain... Cheers.



How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how ca..

Answer / shinoy sansilavose

if your variable always represents a value which is needed
for some mathematical calculations then you can define that
var as either a numeric one or as an alphanumeric one.

if your variable is specif for any city name or address you
can declare it as alphabetic or alphanumeric(alphanumeric
is suggested since address contain pin codes/door number)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


What do you feel makes a good program?

2 Answers  


How can you add a particular field in copybook?

2 Answers   L&T,


what are the limitations of Inline Perform?

3 Answers   Zensar,


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


What are the various section in data division and briefly explain them.

0 Answers  


which generation language is cobol

4 Answers   Kanbay,


There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.

8 Answers   Danske, iGate,


What is the use of intialize verb?

0 Answers  


If we use GO BACK instead of STOP RUN in cobol?

1 Answers   Temenos,


what is qualification on occurs clause?

2 Answers  


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


Categories