How do you define a variable of COMP-1? COMP-2?

Answers were Sorted based on User's Feedback



How do you define a variable of COMP-1? COMP-2?..

Answer / pal

77 A COMP-1.
77 B COMP-2.

because we can't use PIC clause in comp-1 & comp-2

Is This Answer Correct ?    42 Yes 8 No

How do you define a variable of COMP-1? COMP-2?..

Answer / paddu

01 a usage comp-1.
01 b usage cpmp-2.
this way to define

Is This Answer Correct ?    12 Yes 1 No

How do you define a variable of COMP-1? COMP-2?..

Answer / vampire

01 a comp-1
01 b comp-2

Is This Answer Correct ?    9 Yes 4 No

Post New Answer

More COBOL Interview Questions

how do you reference the fixed unblock file formats from cobol programs

0 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


file status 00 is checked after opening the file or reading the file

4 Answers   John Deere,


Can we access the a[0] in the array ?

6 Answers   DCL, IBM,






I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


What is tne need to use sub programs in Cobol?

3 Answers   HSBC,


Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

7 Answers   TCS,


how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

4 Answers   TCS,


hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?

3 Answers   Cap Gemini, CTS,


Categories